Messages in this thread Patch in this message | | | Subject | [patch 192/198] nfsd: clear signals before exiting the nfsd() thread | From | akpm@osdl ... | Date | Tue, 12 Apr 2005 03:33:31 -0700 |
| |
From: NeilBrown <neilb@cse.unsw.edu.au>
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> ---
25-akpm/fs/nfsd/nfssvc.c | 2 ++ 1 files changed, 2 insertions(+)
diff -puN fs/nfsd/nfssvc.c~nfsd-clear-signals-before-exiting-the-nfsd-thread fs/nfsd/nfssvc.c --- 25/fs/nfsd/nfssvc.c~nfsd-clear-signals-before-exiting-the-nfsd-thread 2005-04-12 03:21:49.101672312 -0700 +++ 25-akpm/fs/nfsd/nfssvc.c 2005-04-12 03:21:49.104671856 -0700 @@ -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(); _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |