[Devel] [PATCH RHEL10 COMMIT] fs/fuse kio: avoid hung-task warning on krpc_watcher
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Jun 15 19:45:31 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-211.16.1.12.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-211.16.1.12.1.vz10
------>
commit ae6b02e817642ec4a5bcadfe316a0daf90c94f5c
Author: Liu Kui <kui.liu at virtuozzo.com>
Date: Mon Jun 8 15:14:19 2026 +0800
fs/fuse kio: avoid hung-task warning on krpc_watcher
The wait_event() puts the watcher task in TASK_UNINTERRUPTIBLE state
that still contributes to system load, so a long-lived watched process
triggers khungtaskd:
INFO: task krpc_watcher:225326 blocked for more than 1228 seconds.
Use wait_event_idle() instead to put the task in TASK_IDLE state
without contributing to system load.
https://virtuozzo.atlassian.net/browse/VSTOR-134207
Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
Acked-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Feature: fuse: kRPC - single RPC for kernel and userspace
---
fs/fuse/kio/pcs/pcs_krpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fuse/kio/pcs/pcs_krpc.c b/fs/fuse/kio/pcs/pcs_krpc.c
index 7d5a9619276df..3b42fd7d4489c 100644
--- a/fs/fuse/kio/pcs/pcs_krpc.c
+++ b/fs/fuse/kio/pcs/pcs_krpc.c
@@ -669,7 +669,7 @@ static int krpc_watcher_fn(void *data)
{
struct pcs_krpc_set *krpcs = data;
- wait_event(krpcs->watched_pid->wait_pidfd,
+ wait_event_idle(krpcs->watched_pid->wait_pidfd,
process_has_exited(krpcs->watched_pid) || kthread_should_stop());
kthread_stop(krpcs->sender_task);
More information about the Devel
mailing list