]> 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)
commit11e4f0aac84dd5408fdb7af5c52aecb2f3d92aca
tree2d6cdfdb218aea19bd2896b8f69bad1103b83b74
parentcf4a5120d7447ac8e53985486e2237bf9948c106
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