diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-12-07 04:53:28 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-07 14:47:13 +0100 |
commit | a85381d8326d75417ae177bddf44be533d1d21be (patch) | |
tree | 55eb2286483f1e669e9ba13e016b640d25fd2f26 /block/blk-mq-sysfs.c | |
parent | io_uring: improve io_double_lock_ctx fail handling (diff) | |
download | linux-a85381d8326d75417ae177bddf44be533d1d21be.tar.xz linux-a85381d8326d75417ae177bddf44be533d1d21be.zip |
io_uring: skip overflow CQE posting for dying ring
After io_ring_ctx_wait_and_kill() is called there should be no users
poking into rings and so there is no need to post CQEs. So, instead of
trying to post overflowed CQEs into the CQ, drop them. Also, do it
in io_ring_exit_work() in a loop to reduce the number of contexts it
can be executed from and even when it struggles to quiesce the ring we
won't be leaving memory allocated for longer than needed.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/26d13751155a735a3029e24f8d9ca992f810419d.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sysfs.c')
0 files changed, 0 insertions, 0 deletions