]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7ef9e773c47a745adc619cce2b6d6e35de1fd45
treecdbfb3066e63aec2716859ff5251c16f62bbff72
parentc0a1ea42cbb9d006a49d0d6ae5487153c0463519
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