nfsd: clear signals before exiting the nfsd() thread
PATCH 192/198 nfsd: clear signals before exiting the nfsd() thread
From: NeilBrown <[email protected]>
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 <[email protected]>
Signed-off-by J. Bruce Fields <[email protected]>
Signed-off-by Neil Brown <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/fs/nfsd/nfssvc.c | 2 ++ 1 files changed, 2 insertions(+)
fs/nfsd/nfssvc.c renamed from fs/nfsd/nfssvc.c~nfsd-clear-signals-before-exiting-the-nfsd-thread +2 -0
@@ -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 ();
_