io_uring: refactor io_disarm_next() locking
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 20 Apr 2022 12:40:55 +0000 (13:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:29:19 +0000 (16:29 -0600)
commit1d21a70fd6e7af8389cd77a8d6c94cfff493a007
treeba5d446a72a6515a9cb573d9e06e58d0fbd8f572
parentee9b7ff3029310988a264b7d44c74e4082d2863b
io_uring: refactor io_disarm_next() locking

Split timeout handling into removal + failing, so we can reduce
spinlocking time and remove another instance of triple nested locking.

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