io_uring: don't fail iopoll requeue without ->mm
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 30 Jun 2020 12:20:40 +0000 (15:20 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 15:32:04 +0000 (09:32 -0600)
commitcf2f54255d0342cfbd273cbb964ad6bc7674f587
tree8cb0f93ee06dae7de8abc6b4416f4d71e87082d4
parentab0b6451db2a8ed630b89ef3826b8ea994149444
io_uring: don't fail iopoll requeue without ->mm

Actually, io_iopoll_queue() may have NULL ->mm, that's if SQ thread
didn't grabbed mm before doing iopoll. Don't fail reqs there, as after
recent changes it won't be punted directly but rather through task_work.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c