From: NeilBrown Date: Sat, 16 Apr 2005 22:26:37 +0000 (-0700) Subject: [PATCH] nfsd: clear signals before exiting the nfsd() thread X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e416052f1462801ca857c7536288bac0621615e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 39551657e65..02ded7cfbdc 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -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();