From: Oleg Nesterov Date: Fri, 11 May 2007 05:55:07 +0000 (-0700) Subject: NLM: don't use CLONE_SIGHAND in nlmclnt_recovery X-Git-Tag: v2.6.22-rc2~13^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=550facd138d8f6b0ca683c1e894b5cd0f381cb63;p=~shefty%2Frdma-dev.git 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 Cc: Trond Myklebust Cc: "J. Bruce Fields" Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Trond Myklebust --- diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c index f4d45d4d835..d070b18e539 100644 --- a/fs/lockd/clntlock.c +++ b/fs/lockd/clntlock.c @@ -153,7 +153,7 @@ nlmclnt_recovery(struct nlm_host *host) if (!host->h_reclaiming++) { nlm_get_host(host); __module_get(THIS_MODULE); - if (kernel_thread(reclaimer, host, CLONE_KERNEL) < 0) + if (kernel_thread(reclaimer, host, CLONE_FS | CLONE_FILES) < 0) module_put(THIS_MODULE); } }