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>
Mon, 25 Apr 2022 00:18:17 +0000 (18:18 -0600)
commit81ec803b4ecda446aa965e1c0d8eb4241847ed9c
treec4464da12af88d7d6e1b084f1bf13dd347f9b356
parent3645c2000a7694022c39c545676c12fb9190855a
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