diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-04-16 18:26:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:26:37 -0400 |
commit | 9e416052f1462801ca857c7536288bac0621615e (patch) | |
tree | f657d0dcc3f3d495fbe359cee2ea35868c10b128 /fs/nfsd | |
parent | d13df84ff7f3f3e26a9643c1d3cbf94cef9b5b59 (diff) |
[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 <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 39551657e65..02ded7cfbdc 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -258,6 +258,8 @@ nfsd(struct svc_rqst *rqstp) | |||
258 | break; | 258 | break; |
259 | err = signo; | 259 | err = signo; |
260 | } | 260 | } |
261 | /* Clear signals before calling lockd_down() and svc_exit_thread() */ | ||
262 | flush_signals(current); | ||
261 | 263 | ||
262 | lock_kernel(); | 264 | lock_kernel(); |
263 | 265 | ||