io_uring: cancel deferred requests in try_cancel
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 11 Mar 2021 23:29:35 +0000 (23:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Mar 2021 14:23:00 +0000 (07:23 -0700)
commite1915f76a8981f0a750cf56515df42582a37c4b0
treeca912172c529fb7e9e91072f520602ca22f1bcf5
parentd052d1d685f5125249ab4ff887562c88ba959638
io_uring: cancel deferred requests in try_cancel

As io_uring_cancel_files() and others let SQO to run between
io_uring_try_cancel_requests(), SQO may generate new deferred requests,
so it's safer to try to cancel them in it.

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