Skip to content

SUNRPC: Fix a server shutdown leak

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2166107

commit 9ca6705d9d609441d34f8b853e1e4a6369b3b171
Author: Benjamin Coddington bcodding@redhat.com
Date: Fri Mar 3 16:08:32 2023 -0500

SUNRPC: Fix a server shutdown leak

Fix a race where kthread_stop() may prevent the threadfn from ever getting
called.  If that happens the svc_rqst will not be cleaned up. 

Fixes: ed6473ddc704 ("NFSv4: Fix callback server shutdown")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

Signed-off-by: Benjamin Coddington bcodding@redhat.com

Merge request reports