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)
commit81b6d05ccad4f3d8a9dfb091fb46ad6978ee40e4
tree436488ee88fa3340b70159db102520917de94cdb
parentb1b6b5a30dce872f500dc43f067cba8e7f86fc7d
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