Files
linux_media/io_uring
Jens Axboe 2f2bb1ffc9 io_uring: mark task TASK_RUNNING before handling resume/task work
Just like for task_work, set the task mode to TASK_RUNNING before doing
any potential resume work. We're not holding any locks at this point,
but we may have already set the task state to TASK_INTERRUPTIBLE in
preparation for going to sleep waiting for events. Ensure that we set it
back to TASK_RUNNING if we have work to process, to avoid warnings on
calling blocking operations with !TASK_RUNNING.

Fixes: b5d3ae202f ("io_uring: handle TIF_NOTIFY_RESUME when checking for task_work")
Reported-by: kernel test robot <oliver.sang@intel.com>
Link: https://lore.kernel.org/oe-lkp/202302062208.24d3e563-oliver.sang@intel.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-02-06 08:23:21 -07:00
..
2022-12-07 06:47:13 -07:00
2022-09-21 13:15:02 -06:00
2023-01-29 15:17:41 -07:00
2023-01-29 15:17:41 -07:00
2023-01-29 15:17:41 -07:00
2023-01-29 15:17:41 -07:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2023-01-29 15:17:41 -07:00
2022-10-07 12:25:30 -06:00