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>
Thu, 25 Mar 2021 16:24:19 +0000 (10:24 -0600)
commit050faaace1ec42950d57a87be617bcbcbc40f59f
treea767b058186122655b53198511060cec8a53ea99
parentae9007fe1eca8e2cb64fd0bee9e152556d3e1c50
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