diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 3bacbfefc0e1..019600570ee4 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -261,8 +261,10 @@ static inline int io_run_task_work(void) * notify work that needs processing. */ if (current->flags & PF_IO_WORKER && - test_thread_flag(TIF_NOTIFY_RESUME)) + test_thread_flag(TIF_NOTIFY_RESUME)) { + __set_current_state(TASK_RUNNING); resume_user_mode_work(NULL); + } if (task_work_pending(current)) { __set_current_state(TASK_RUNNING); task_work_run();