From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 Description of problem: tree f657d0dcc3f3d495fbe359cee2ea35868c10b128 parent d13df84ff7f3f3e26a9643c1d3cbf94cef9b5b59 author NeilBrown <neilb.edu.au> Sun, 17 Apr 2005 05:26:37 -0700 committer Linus Torvalds <torvalds.org> 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 <Trond.Myklebust> Signed-off-by: J. Bruce Fields <bfields.edu> Signed-off-by: Neil Brown <neilb.edu.au> Signed-off-by: Andrew Morton <akpm> Signed-off-by: Linus Torvalds <torvalds> 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 majordomo.org More majordomo info at http://vger.kernel.org/majordomo-info.html Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.bring a RHEL4 system down 2. 3. Additional info:
Created attachment 120370 [details] Proposed RHEL4 Patch -------- Original Message -------- Subject: [RHEL4 Patch] nfsd: clear signals before exiting the nfsd() thread Date: Mon, 25 Apr 2005 11:50:25 -0400 From: Steve Dickson <SteveD> Reply-To: rhkernel-list Organization: Red Hat Inc. Internal News Newsgroups: rhat.general.rhkernel-list Here is an upstream patch that was just committed which causes nfsd to clear it's signal mask before unregistering with the portmapper. Not doing this cause the "RPC: failed to contact portmap (errno -512)" message to be logged when a system is being brought down. I've seen this message number of times, but when it came time to explicitly test this patch I was not able consistently reproduce the problem. Although I have not see this problem with the -mm kernel, which does have this patch.... steved.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0132.html