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-Url: https://git.stricted.de/?a=commitdiff_plain;h=550facd138d8f6b0ca683c1e894b5cd0f381cb63;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 f4d45d4d835b..d070b18e539d 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); } }