diff options
Diffstat (limited to 'io_uring/poll.c')
-rw-r--r-- | io_uring/poll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_uring/poll.c b/io_uring/poll.c index 17dea8aa09c9..bfdb537572f7 100644 --- a/io_uring/poll.c +++ b/io_uring/poll.c @@ -265,8 +265,7 @@ static int io_poll_check_events(struct io_kiocb *req, struct io_tw_state *ts) { int v; - /* req->task == current here, checking PF_EXITING is safe */ - if (unlikely(req->task->flags & PF_EXITING)) + if (unlikely(io_should_terminate_tw(req->ctx))) return -ECANCELED; do { |