Commit 9e416052 authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds

[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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d13df84f
...@@ -258,6 +258,8 @@ nfsd(struct svc_rqst *rqstp) ...@@ -258,6 +258,8 @@ nfsd(struct svc_rqst *rqstp)
break; break;
err = signo; err = signo;
} }
/* Clear signals before calling lockd_down() and svc_exit_thread() */
flush_signals(current);
lock_kernel(); lock_kernel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment