io_uring: handle TIF_NOTIFY_RESUME when checking for task_work
authorJens Axboe <axboe@kernel.dk>
Tue, 24 Jan 2023 15:24:25 +0000 (08:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commitb5d3ae202fbfe055aa2a8ae8524531ee1dcab717
tree21b73092fdd7d7a71416854091912ae9e7b75e52
parent8572df941cbef2b295282535b013828e7df39471
io_uring: handle TIF_NOTIFY_RESUME when checking for task_work

If TIF_NOTIFY_RESUME is set, then we need to call resume_user_mode_work()
for PF_IO_WORKER threads. They never return to usermode, hence never get
a chance to process any items that are marked by this flag. Most notably
this includes the final put of files, but also any throttling markers set
by block cgroups.

Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h