]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: perform poll removal even if async work removal is successful
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:11:11 +0000 (19:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:28:43 +0000 (19:28 -0700)
commit8f8913e6c78810df4a69915cd2aa244ac3d325ec
tree2d6cdfdb218aea19bd2896b8f69bad1103b83b74
parent68cb13bab8adbb69a5b11901550c697da6b96d47
io_uring: perform poll removal even if async work removal is successful

An active work can have poll armed, hence it's not enough to just do
the async work removal and return the value if it's different from "not
found". Rather than make poll removal special, just fall through to do
the remaining type lookups and removals.

Reported-by: Florian Fischer <florian.fl.fischer@fau.de>
Link: https://lore.kernel.org/io-uring/20220118151337.fac6cthvbnu7icoc@pasture/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c