NLM: don't use CLONE_SIGHAND in nlmclnt_recovery
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 11 May 2007 05:55:07 +0000 (22:55 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 14 May 2007 23:33:44 +0000 (19:33 -0400)
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>
fs/lockd/clntlock.c

index f4d45d4d835b9ff77531d896ababeecf6b090f5d..d070b18e539dac18a8e452bff19524e74b1d793e 100644 (file)
@@ -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);
        }
 }