aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-02-06 08:20:46 -0700
committerJens Axboe <[email protected]>2023-02-06 08:23:21 -0700
commit2f2bb1ffc9983e227424d0787289da5483b0c74f (patch)
treed029d7d0d7b191900346eb183a6df1ceca679ea0 /scripts/gdb/linux/tasks.py
parent0ffae640ad83de46865c6b8dc3fda370823e4f1d (diff)
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: b5d3ae202fbf ("io_uring: handle TIF_NOTIFY_RESUME when checking for task_work") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-lkp/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions