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)
commitccbf726171b7328f800bc98005132fd77eb1a175
tree2d6cdfdb218aea19bd2896b8f69bad1103b83b74
parent361aee450c6e36c8dbab712c94a8a7835bd92e25
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