tree e7923d6e0ff4afab9c625e2844d6ae71adf68ddd
parent 40ed59819ab1e0e2841d5b677722cb1337c8044b
author NeilBrown <[EMAIL PROTECTED]> Tue Apr 12 08:27:03 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:27:03 2005

[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]>

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

Index: fs/nfsd/nfssvc.c
===================================================================
--- 4e9dc600a021066a6f67288d8e94d35592322302/fs/nfsd/nfssvc.c  (mode:100644 
sha1:24d8fa9d88e63ae6e5fd309b5ce4d32fc1092949)
+++ e7923d6e0ff4afab9c625e2844d6ae71adf68ddd/fs/nfsd/nfssvc.c  (mode:100644 
sha1:8d28175e3ce95e419b4bfb1a84f0e06d550ad8e8)
@@ -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