diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-03-06 11:02:14 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-07 14:12:43 -0700 |
commit | eebd2e37e662617a6b8041db75205f0a262ce870 (patch) | |
tree | 6dc00160308de3a867a0f7771c0c83270f177ae9 /.mailmap | |
parent | d56d938b4bef3e1421a42023cdcd6e13c1f50831 (diff) | |
download | linux-eebd2e37e662617a6b8041db75205f0a262ce870.tar.gz |
io_uring: don't take task ring-file notes
With ->flush() gone we're now leaving all uring file notes until the
task dies/execs, so the ctx will not be freed until all tasks that have
ever submit a request die. It was nicer with flush but not much, we
could have locked as described ctx in many cases.
Now we guarantee that ctx outlives all tctx in a sense that
io_ring_exit_work() waits for all tctxs to drop their corresponding
enties in ->xa, and ctx won't go away until then. Hence, additional
io_uring file reference (a.k.a. task file notes) are not needed anymore.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions