Skip to content

SUNRPC: have svc tasks sleep in TASK_INTERRUPTIBLE instead of TASK_IDLE

Jeffrey Layton requested to merge jtlayton/centos-stream-9:RHEL-22742 into main

sunrpc: have svc tasks sleep in TASK_INTERRUPTIBLE instead of TASK_IDLE

JIRA: https://issues.redhat.com/browse/RHEL-22742
Upstream Status: RHEL-only

RHEL9 doesn't have f5d39b020809 ("freezer,sched: Rewrite core freezer logic"), which means that when the freezer runs, it wakes kthreads that are in TASK_INTERRUPTIBLE and not ones that are sleeping in TASK_IDLE.

A recent sunrpc patch backport switched svc threads to sleep in TASK_IDLE instead of TASK_INTERRUPTIBLE. This caused a regression where nfs client or server services could block the freezer.

It doesn't make much practical difference what state the threads sleep in, so switch them back to TASK_INTERRUPTIBLE. kthreads silently drop signals by default anyway.

Signed-off-by: Jeffrey Layton jlayton@redhat.com

Edited by Jeffrey Layton

Merge request reports