]> git.ipfire.org Git - thirdparty/linux.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)
commit9a472ef7a3690ac0b77ebfb04c88fa795de2adea
tree52601c2f161cccd8057364f971a070a03211d023
parent6b47ab81c9a9b56a94882815e9949d40e4207c92
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