]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: account io_uring internal files as REQ_F_INFLIGHT
authorJens Axboe <axboe@kernel.dk>
Sat, 23 Jan 2021 22:49:31 +0000 (15:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Jan 2021 17:15:33 +0000 (10:15 -0700)
commit5c652c93d4e9fdb1c956ffcf66b4a25b79308cda
tree2334216d23c483734b1deec80551e35045e47d30
parent29d409d83b544abf57267833692554c62c846755
io_uring: account io_uring internal files as REQ_F_INFLIGHT

We need to actively cancel anything that introduces a potential circular
loop, where io_uring holds a reference to itself. If the file in question
is an io_uring file, then add the request to the inflight list.

Cc: stable@vger.kernel.org # 5.9+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c