]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
SUNRPC: Fix a server shutdown leak
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 3 Mar 2023 21:08:32 +0000 (16:08 -0500)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:10 +0000 (13:33 +0200)
commit278e1eb374c40f69da1b925363db5b9c27f6d894
tree72569e051fc03343d732c172344770200fc34e6c
parented1665aa1bb0508a75f3cbeb41b17f38b8cdef0a
SUNRPC: Fix a server shutdown leak

BugLink: https://bugs.launchpad.net/bugs/2016875
[ Upstream commit 9ca6705d9d609441d34f8b853e1e4a6369b3b171 ]

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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sunrpc/svc.c