]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f3a80a86e1608b37050ccf224cf56a1bdf019fb
tree8cb0f93ee06dae7de8abc6b4416f4d71e87082d4
parent199222af6207fbc070595cf592e93dcda7e29d6a
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