diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-13 17:28:09 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-15 23:44:57 +0300 |
commit | 7d481e0356334eb2de254414769b4bed4b2a8827 (patch) | |
tree | e0320e74e123a0e8dff4306a78dcc5dac19de98c /include/linux/io_uring_types.h | |
parent | 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f (diff) | |
download | linux-7d481e0356334eb2de254414769b4bed4b2a8827.tar.xz |
io_uring/rsrc: fix DEFER_TASKRUN rsrc quiesce
For io_rsrc_ref_quiesce() to progress it should execute all task_work
items, including deferred ones. However, currently nobody would wake us,
and so let's set ctx->cq_wait_nr, so io_req_local_work_add() would wake
us up.
Fixes: c0e0d6ba25f18 ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f1a90d1bc5ebf096475b018fed52e54f3b89d4af.1681395792.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring_types.h')
0 files changed, 0 insertions, 0 deletions