]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/io_uring.c
io_uring: simplify io_timeout locking
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 26 May 2020 17:34:03 +0000 (20:34 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 May 2020 19:31:08 +0000 (13:31 -0600)
commit733f5c95e6fdabd05b8dfc15e04512809c9652c2
treee6fd7d1fdd49ac5178d94e078f8c4df7682e6067
parent4518a3cc273cf82efdd36522fb1f13baad173c70
io_uring: simplify io_timeout locking

Move spin_lock_irq() earlier to have only 1 call site of it in
io_timeout(). It makes the flow easier.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c