]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: deduplicate core cancellations sequence
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Feb 2021 13:51:56 +0000 (13:51 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Feb 2021 15:05:46 +0000 (08:05 -0700)
commitd7c406d1380fbff0bed5eef23d8874732f7395f5
treeaede1877a882ce913b7c7b1ca75bbdcc3ee88977
parentff97e124e2d0c463c6f33231f053c8385e6b338e
io_uring: deduplicate core cancellations sequence

Files and task cancellations go over same steps trying to cancel
requests in io-wq, poll, etc. Deduplicate it with a helper.

note: new io_uring_try_cancel_requests() is former
__io_uring_cancel_task_requests() with files passed as an agrument and
flushing overflowed requests.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c