io_uring: don't check PF_EXITING from syscall
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Feb 2021 18:41:15 +0000 (18:41 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Feb 2021 18:49:48 +0000 (11:49 -0700)
commitdc0eced5d92052a84d58df03a3bc6382f64fecfa
tree6b4b4b6bd6708452c5f1211810ed3c8e490d7b06
parent4fccfcbb733794634d4e873e7973c1847beca5bf
io_uring: don't check PF_EXITING from syscall

io_sq_thread_acquire_mm_files() can find a PF_EXITING task only when
it's called from task_work context. Don't check it in all other cases,
that are when we're in io_uring_enter().

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