]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: correct link-list traversal locking
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 23 Nov 2021 01:45:35 +0000 (01:45 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 23 Nov 2021 02:31:54 +0000 (19:31 -0700)
commit4f5f48ebd6244c85bf618e41da83063f6a8d64b5
treec103de0eb3670b521b7a7c30d9a13d4367221925
parent3777e1203c15b3baa7ffd06764c5c9aad20f81bd
io_uring: correct link-list traversal locking

As io_remove_next_linked() is now under ->timeout_lock (see
io_link_timeout_fn), we should update locking around io_for_each_link()
and io_match_task() to use the new lock.

Cc: stable@kernel.org # 5.15+
Fixes: efc8f761d7d03 ("io_uring: run timeouts from task_work")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b54541cedf7de59cb5ae36109e58529ca16e66aa.1637631883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c