io_u: calculate incremental residuals correctly
authorJens Axboe <axboe@kernel.dk>
Wed, 12 Aug 2020 17:48:15 +0000 (11:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Aug 2020 17:48:15 +0000 (11:48 -0600)
commit84abeef7d9f2f5cded36dcfc127b3f33db89ea57
tree79c5fcec00bac9f432233c6f6a4e74cd9b6fa961
parent0d578085cc7b97b783e1719b205dd563b406ecbc
io_u: calculate incremental residuals correctly

We need to use the transfer buffer length for the residual calculation,
otherwise multiple shorts on the same IO will not calculate the right
value.

Fixes: 5fff95436922 ("Add support for >= 4G block sizes")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c