]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: reinstate the inflight tracking
authorJens Axboe <axboe@kernel.dk>
Thu, 2 Jun 2022 05:57:02 +0000 (23:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jun 2022 05:57:02 +0000 (23:57 -0600)
commit7d6e647a466a5e2bd4d73604187a3f7d5129642c
tree404e9bcc4b445de4374e597ee702f054f56a321c
parentfa61fee7c14598b76065a8631ca0d16d40fc5eac
io_uring: reinstate the inflight tracking

After some debugging, it was realized that we really do still need the
old inflight tracking for any file type that has io_uring_fops assigned.
If we don't, then trivial circular references will mean that we never get
the ctx cleaned up and hence it'll leak.

Just bring back the inflight tracking, which then also means we can
eliminate the conditional dropping of the file when task_work is queued.

Fixes: 26da70d7ddb8 ("io_uring: drop the old style inflight file tracking")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c