]> 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)
commit49cb574125077af283b95673b709458ac17e0d8e
tree52601c2f161cccd8057364f971a070a03211d023
parent18998804c529e34ec93390b9121289fb758e030e
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