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, 4 Apr 2021 21:27:19 +0000 (15:27 -0600)
commitc3475f6ee9f077e5824bb027276c84ac60a0f037
tree18d63f3c5381b09a9f327efd659f91fe8b6013f7
parent0eb7edda54fea72ea2b48c397a18add52dcb7f20
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