diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-11-30 15:21:51 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-30 10:26:57 -0700 |
commit | f6f7f903e78dddcb1e1552b896e0e3e9c14c17ae (patch) | |
tree | 45bf19b6b6587bfa906a5823846cc64cd25cf747 /io_uring | |
parent | b2cf789f6cb6d449f2b457ee3fb055b7f431481f (diff) | |
download | linux-f6f7f903e78dddcb1e1552b896e0e3e9c14c17ae.tar.gz linux-f6f7f903e78dddcb1e1552b896e0e3e9c14c17ae.tar.bz2 linux-f6f7f903e78dddcb1e1552b896e0e3e9c14c17ae.zip |
io_uring: kill io_poll_issue's PF_EXITING check
We don't need to worry about checking PF_EXITING in io_poll_issue().
task works using the function should take care of it and never try to
resubmit / retry if the task is dying.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2e9dc998dc07507c759a0c9cb5d2fbea0710d58c.1669821213.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index adecdf65b130..15d285d8ce0f 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1808,8 +1808,6 @@ static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_flags) int io_poll_issue(struct io_kiocb *req, bool *locked) { io_tw_lock(req->ctx, locked); - if (unlikely(req->task->flags & PF_EXITING)) - return -EFAULT; return io_issue_sqe(req, IO_URING_F_NONBLOCK|IO_URING_F_MULTISHOT| IO_URING_F_COMPLETE_DEFER); } |