diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-13 17:28:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-15 23:44:57 +0300 |
commit | 0b222eeb6514ba6c3457b667fa4f3645032e1fc9 (patch) | |
tree | ae98c04f8ce68425ddbeba1777c69150e18bbd78 /include/linux/io_uring_types.h | |
parent | 7d481e0356334eb2de254414769b4bed4b2a8827 (diff) | |
download | linux-0b222eeb6514ba6c3457b667fa4f3645032e1fc9.tar.xz |
io_uring/rsrc: remove rsrc_data refs
Instead of waiting for rsrc_data->refs to be downed to zero, check
whether there are rsrc nodes queued for completion, that's easier then
maintaining references.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8e33fd143d83e11af3e386aea28eb6d6c6a1be10.1681395792.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring_types.h')
-rw-r--r-- | include/linux/io_uring_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index 5c9645319770..1b2a20a42413 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -334,6 +334,7 @@ struct io_ring_ctx { struct list_head rsrc_ref_list; struct io_alloc_cache rsrc_node_cache; struct wait_queue_head rsrc_quiesce_wq; + unsigned rsrc_quiesce; struct list_head io_buffers_pages; |