OSDN Git Service

io_uring: remove unnecessary PF_EXITING check
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Aug 2021 12:04:06 +0000 (13:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:07:56 +0000 (13:07 -0600)
commit2215bed9246dbb95df50fcef788b0765c7c2aac0
treedc9fc084b5c9360985f9f3506af9a90fea42bd83
parentebc11b6c6b87da5c83b4d934893a893f49160bc3
io_uring: remove unnecessary PF_EXITING check

We prefer nornal task_works even if it would fail requests inside. Kill
a PF_EXITING check in io_req_task_work_add(), task_work_add() handles
well dying tasks, i.e. return error when can't enqueue due to late
stages of do_exit().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/fc14297e8441cd8f5d1743a2488cf0df09bf48ac.1628471125.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c