]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add completion locking for iopoll
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 23 Nov 2022 11:33:36 +0000 (11:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:33:11 +0000 (13:33 +0100)
commitaae3511b09d2f6c6ed51a1b531fc4a55474e79d3
tree5a8abbb0b767df569b27864176052f051fa53c14
parentc3f7b7dc403afc72c7571e0d7f7db7cc702684a8
io_uring: add completion locking for iopoll

commit 2ccc92f4effcfa1c51c4fcf1e34d769099d3cad4 upstream.

There are pieces of code that may allow iopoll to race filling cqes,
temporarily add spinlocking around posting events.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/84d86b5c117feda075471c5c9e65208e0dccf5d0.1669203009.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/rw.c