]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: mark reissue requests with REQ_F_PARTIAL_IO
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Jun 2022 12:39:27 +0000 (06:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Jun 2022 12:39:27 +0000 (06:39 -0600)
commit0c3a53210108d2f24906a6bb65b5b2701a96fea8
tree83f84dcfcaafa1318693444aaee4467ae9d402c3
parent097bc804ae9f98ae144b111a2d28e5488c25cbbe
io_uring: mark reissue requests with REQ_F_PARTIAL_IO

If we mark for reissue, we assume that the buffer will remain stable.
Hence if are using a provided buffer, we need to ensure that we stick
with it for the duration of that request.

This only affects block devices that use provided buffers, as those are
the only ones that get marked with REQ_F_REISSUE.

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