io_uring/rsrc: remove rsrc_data refs
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Apr 2023 14:28:10 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Apr 2023 20:44:57 +0000 (14:44 -0600)
commit0b222eeb6514ba6c3457b667fa4f3645032e1fc9
treeae98c04f8ce68425ddbeba1777c69150e18bbd78
parent7d481e0356334eb2de254414769b4bed4b2a8827
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>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/rsrc.c
io_uring/rsrc.h