]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: exclude from freezer when waiting for requests:
authorNeilBrown <neilb@suse.de>
Fri, 7 Jun 2024 13:10:48 +0000 (09:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:55 +0000 (13:39 +0200)
commit3feac2b5529335dff4f91d3e97b006a7096d63ec
treeb5e8bdc20c2ea3b38c6223d000f3e90f9ae3bf9c
parenta89f73ed56305c527ff98847d7a2156e355af4ae
sunrpc: exclude from freezer when waiting for requests:

Prior to v6.1, the freezer will only wake a kernel thread from an
uninterruptible sleep.  Since we changed svc_get_next_xprt() to use and
IDLE sleep the freezer cannot wake it.  We need to tell the freezer to
ignore it instead.

To make this work with only upstream commits, 5.15.y would need
commit f5d39b020809 ("freezer,sched: Rewrite core freezer logic")
which allows non-interruptible sleeps to be woken by the freezer.

Fixes: 9b8a8e5e8129 ("nfsd: don't allow nfsd threads to be signalled.")
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/callback.c
fs/nfsd/nfs4proc.c
net/sunrpc/svc_xprt.c