]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix a server shutdown leak
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 3 Mar 2023 21:08:32 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:28 +0000 (08:50 +0100)
commitb3aa4b8291eca0dc28898f7f71726f66752d4774
tree2c6b819682dd6db613bc8934776de095d7c74f2a
parent1796bf8e154b6068040cc6c798f16ddd94c9adeb
SUNRPC: Fix a server shutdown leak

[ Upstream commit 5cfe6e5a040be6210c515bc2001c3bff5ebfd720 ]

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: 025a3b57f381 ("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>
net/sunrpc/svc.c