]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: import_single_range() returns 0/-ERROR
authorJens Axboe <axboe@kernel.dk>
Wed, 26 Feb 2020 00:48:55 +0000 (17:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Feb 2020 14:06:57 +0000 (07:06 -0700)
commit79efae3b7e026dc23d9b423f9f0c87173bbcb3d6
tree4722ab78b6f19ec409294d30fa281f5184f5a45c
parent0cde91e70e9cb7cada098ee0a74a25224883ff85
io_uring: import_single_range() returns 0/-ERROR

Unlike the other core import helpers, import_single_range() returns 0 on
success, not the length imported. This means that links that depend on
the result of non-vec based IORING_OP_{READ,WRITE} that were added for
5.5 get errored when they should not be.

Fixes: 35e245136297 ("io_uring: add non-vectored read/write commands")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c