From: NeilBrown Date: Fri, 24 Jun 2005 05:03:11 +0000 (-0700) Subject: [PATCH] knfsd: lockd: flush signals on shutdown X-Git-Tag: v2.6.13-rc1~68^2~309 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46be925fa6f4796e732e16a020fa0ef9d48ea7c8;p=linux-2.6 [PATCH] knfsd: lockd: flush signals on shutdown Silence another annoying "failed to contact portmap (errno -512)" on shutdown. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index b82e470912..6e242556b9 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -191,7 +191,9 @@ lockd(struct svc_rqst *rqstp) printk(KERN_DEBUG "lockd: new process, skipping host shutdown\n"); wake_up(&lockd_exit); - + + flush_signals(current); + /* Exit the RPC thread */ svc_exit_thread(rqstp);