]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: perform IOPOLL reaping if canceler is thread itself
authorJens Axboe <axboe@kernel.dk>
Thu, 11 Mar 2021 17:49:20 +0000 (10:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Mar 2021 17:49:20 +0000 (10:49 -0700)
commitbd93eedc93aec80250a51b083ccfe75f96f9d773
tree46acca647cf9277efe8a50c322a02060b75db348
parenteecf9569d7f9a4dc530e41a8f4e1dff67b3ab7c2
io_uring: perform IOPOLL reaping if canceler is thread itself

We bypass IOPOLL completion polling (and reaping) for the SQPOLL thread,
but if it's the thread itself invoking cancelations, then we still need
to perform it or no one will.

Fixes: d7c406d1380f ("io_uring: deduplicate core cancellations sequence")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c