]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix link lookup racing with link timeout
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Nov 2020 22:31:37 +0000 (22:31 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Nov 2020 22:36:40 +0000 (15:36 -0700)
commit385b0b8c0e60d5f549108e7c9d0e9e650dfca5e6
tree52601c2f161cccd8057364f971a070a03211d023
parenta8418b6fde8ebbfba6b90408c4340b03406fab40
io_uring: fix link lookup racing with link timeout

We can't just go over linked requests because it may race with linked
timeouts. Take ctx->completion_lock in that case.

Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c