io_uring/rsrc: refactor io_rsrc_ref_quiesce
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Apr 2023 14:28:07 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Apr 2023 20:44:57 +0000 (14:44 -0600)
commiteef81fcaa61e1bc6b7735be65f41bbf1a8efd133
tree131fdd88b8c001b590dc799ebee9d99819ab69ff
parentc732ea242d565c8281c4b017929fc62a246d81b9
io_uring/rsrc: refactor io_rsrc_ref_quiesce

Refactor io_rsrc_ref_quiesce() by moving the first mutex_unlock(),
so we don't have to have a second mutex_unlock() further in the loop.
It prepares us to the next patch.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/65bc876271fb16bf550a53a4c76c91aacd94e52e.1681395792.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c