From: NeilBrown Date: Sat, 16 Apr 2005 22:26:37 +0000 (-0700) Subject: [PATCH] nfsd: clear signals before exiting the nfsd() thread X-Git-Tag: v2.6.12-rc3~53 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=9e416052f1462801ca857c7536288bac0621615e [PATCH] nfsd: clear signals before exiting the nfsd() thread Fixes the error "RPC: failed to contact portmap (errno -512)." when the server later tries to unregister from the portmapper. Signed-off-by: Trond Myklebust 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/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 3955165..02ded7c 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -258,6 +258,8 @@ nfsd(struct svc_rqst *rqstp) break; err = signo; } + /* Clear signals before calling lockd_down() and svc_exit_thread() */ + flush_signals(current); lock_kernel();