diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 18d0966cd8ab..a8ee7287ac9f 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -322,6 +322,7 @@ static inline int io_run_task_work(void) if (current->io_uring) { unsigned int count = 0; + __set_current_state(TASK_RUNNING); tctx_task_work_run(current->io_uring, UINT_MAX, &count); if (count) ret = true;