]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: synchronise IOPOLL on task_submit fail
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 4 Jan 2021 20:36:35 +0000 (20:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Jan 2021 22:22:27 +0000 (15:22 -0700)
commit2e60ac27a7bbe627f61282fb769d87a490810072
tree436488ee88fa3340b70159db102520917de94cdb
parentb54eb849cb654245cc944668fef66c1fab5386de
io_uring: synchronise IOPOLL on task_submit fail

io_req_task_submit() might be called for IOPOLL, do the fail path under
uring_lock to comply with IOPOLL synchronisation based solely on it.

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