]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cancel-match based on flags
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Mar 2021 13:59:24 +0000 (13:59 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Mar 2021 22:44:50 +0000 (15:44 -0700)
commitb05a1bcd40184f12f2cd87db79e871aa8c17563f
tree6bf16f9b3f0d73084341fb55cf4c340f0aed73bc
parentf01272541d2cd7b7f24909d63ea2b028a6a66293
io_uring: cancel-match based on flags

Instead of going into request internals, like checking req->file->f_op,
do match them based on REQ_F_INFLIGHT, it's set only when we want it to
be reliably cancelled.

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