tree f657d0dcc3f3d495fbe359cee2ea35868c10b128
parent d13df84ff7f3f3e26a9643c1d3cbf94cef9b5b59
author NeilBrown <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:37 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:37 -0700

[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 <[EMAIL PROTECTED]>
Signed-off-by: J. Bruce Fields <[EMAIL PROTECTED]>
Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 nfsd/nfssvc.c |    2 ++
 1 files changed, 2 insertions(+)

Index: fs/nfsd/nfssvc.c
===================================================================
--- 9531a56973381aa48a10fbc7073d1109f380d550/fs/nfsd/nfssvc.c  (mode:100644 
sha1:39551657e65659d6d25197beffd952c3715a879d)
+++ f657d0dcc3f3d495fbe359cee2ea35868c10b128/fs/nfsd/nfssvc.c  (mode:100644 
sha1:02ded7cfbdcf1261d39c13ab0f01d27a79cc93fd)
@@ -258,6 +258,8 @@
                                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 bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to