Skip to content

Commit

Permalink
[PATCH] nfsd: clear signals before exiting the nfsd() thread
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Apr 16, 2005
1 parent d13df84 commit 9e41605
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9e41605

Please sign in to comment.