io_uring: add completion locking for iopoll
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 23 Nov 2022 11:33:36 +0000 (11:33 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Nov 2022 17:44:00 +0000 (10:44 -0700)
commit2ccc92f4effcfa1c51c4fcf1e34d769099d3cad4
tree46d7433d8f0ace2fd19ae191c211113f5c40ce7e
parent6c16fe3c16bdc420719768f7ea97b82bd6303eec
io_uring: add completion locking for iopoll

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>
io_uring/rw.c