Skip to content
Commit 9cae36a0 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: d5361233

 ("io_uring: drop the old style inflight file tracking")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 61c1b44a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment