io_uring: clean poll tw PF_EXITING handling
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Apr 2022 21:08:20 +0000 (22:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:02:49 +0000 (18:02 -0600)
commitf22190570b213dcc84216ac07cfd0eeada010013
tree76a95212cabcd9d919f7f972dfe80eee70d6b695
parentd8da428b7a9a71bc2ee6bf628a8c0f9beb96a195
io_uring: clean poll tw PF_EXITING handling

When we meet PF_EXITING in io_poll_check_events(), don't overcomplicate
the code with io_poll_mark_cancelled() but just return -ECANCELED and
the callers will deal with the rest.

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