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>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commit53f3c7b53954fe312f2756d0240e9097261e640f
tree0d4306ad5ff0fd648ec6910ce02933a1141b77b9
parent20c45799df5ef2bc953262f6f23bacd6f115fcdf
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