]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87c4426545417d7b13f4c8936194aa3a502f23f2
tree76a95212cabcd9d919f7f972dfe80eee70d6b695
parentc34c4aed8536023b0d523bfd4992cb41ce3bf03e
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