io_uring: transform ret == 0 for poll cancelation completions
authorJens Axboe <axboe@kernel.dk>
Tue, 23 Feb 2021 15:19:33 +0000 (08:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commit45ab03b19e8bf33af3e5f5a24729e5564d54fae9
treecdbfb3066e63aec2716859ff5251c16f62bbff72
parentb9b0e0d39c7b4be7af7976c52bdb8664dfa389f5
io_uring: transform ret == 0 for poll cancelation completions

We can set canceled == true and complete out-of-line, ensure that we catch
that and correctly return -ECANCELED if the poll operation got canceled.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c