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, 18 Apr 2022 01:23:58 +0000 (19:23 -0600)
commitc68356048b630cb40f9a50aa7dd25a301bc5da9e
tree56ca944b82715b12f59e6ec1f806b922bdf4bfda
parentddf3eee6862f8a3e080a4e0b9c8401c47153b3ec
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