io_uring: simplify io_rsrc_node_ref_zero
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:41 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit221aa92409f945a19ce28c5cb54b4d9957f90715
tree2b87e247d85c03e74c33dddf72b48e34766914a3
parentb895c9a632e70ad977c1c0e31e640be5c98b56c6
io_uring: simplify io_rsrc_node_ref_zero

Replace queue_delayed_work() with mod_delayed_work() in
io_rsrc_node_ref_zero() as the later one can schedule a new work, and
cleanup it further for better readability.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3b2b23e3a1ea4bbf789cd61815d33e05d9ff945e.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c