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)
commit1bacd264d3c3a05de4afdd1712c9dd6ccebb9490
tree83f84dcfcaafa1318693444aaee4467ae9d402c3
parent6436c770f120a9ffeb4e791650467f30f1d062d1
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