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)
commit02a13674fa0e8dd326de8b9f4514b41b03d99003
tree2334216d23c483734b1deec80551e35045e47d30
parent9d5c8190683a462dbc787658467a0da17011ea5f
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