Commit 50d6a093 authored by Benjamin Coddington's avatar Benjamin Coddington Committed by sanglipeng
Browse files

SUNRPC: Fix a server shutdown leak

stable inclusion
from stable-v5.10.175
commit ce7dd61e004002bc1c48d1ca47c887f3f3cc7370
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8711T

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ce7dd61e004002bc1c48d1ca47c887f3f3cc7370



--------------------------------

[ Upstream commit 9ca6705d ]

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: ed6473dd ("NFSv4: Fix callback server shutdown")
Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d8ea07c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment