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)
commitd052d1d685f5125249ab4ff887562c88ba959638
tree46acca647cf9277efe8a50c322a02060b75db348
parent5c2469e0a22e035d52f3ba768151cc75e3d4a1cd
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: 9936c7c2bc76 ("io_uring: deduplicate core cancellations sequence")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c