]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33423eb42b0bec4004bb8b3b8d6c43443fbbc81c
tree6b4b4b6bd6708452c5f1211810ed3c8e490d7b06
parent22c92575de907d6462433ff36c86fd0a8034554f
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