diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-18 14:06:37 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-18 19:38:26 -0600 |
commit | 26147da37f3e52041d9deba189d39f27ce78a84f (patch) | |
tree | 34f7046ca88435e76a9a3cfaa552cd26229cc591 /io_uring/rsrc.h | |
parent | c376644fb915fbdea8c4a04f859d032a8be352fd (diff) | |
download | lwn-26147da37f3e52041d9deba189d39f27ce78a84f.tar.gz lwn-26147da37f3e52041d9deba189d39f27ce78a84f.zip |
io_uring/rsrc: add empty flag in rsrc_node
Unless a node was flushed by io_rsrc_ref_quiesce(), it'll carry a
resource. Replace ->inline_items with an empty flag, which is
initialised to false and only raised in io_rsrc_ref_quiesce().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/75d384c9d2252e12af73b9cf8a44e1699106aeb1.1681822823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r-- | io_uring/rsrc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index bad7103f5033..f3fe455c6c71 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -43,7 +43,7 @@ struct io_rsrc_node { struct io_rsrc_data *rsrc_data; }; int refs; - int inline_items; + bool empty; struct list_head node; struct io_rsrc_put item; }; |