Commit 550facd138d8f6b0ca683c1e894b5cd0f381cb63

Authored by Oleg Nesterov
Committed by Trond Myklebust
1 parent 21051ba625

NLM: don't use CLONE_SIGHAND in nlmclnt_recovery

reclaimer() calls allow_signal() which plays with parent process's ->sighand.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -153,7 +153,7 @@
153 153 if (!host->h_reclaiming++) {
154 154 nlm_get_host(host);
155 155 __module_get(THIS_MODULE);
156   - if (kernel_thread(reclaimer, host, CLONE_KERNEL) < 0)
  156 + if (kernel_thread(reclaimer, host, CLONE_FS | CLONE_FILES) < 0)
157 157 module_put(THIS_MODULE);
158 158 }
159 159 }