+19
−51
Loading
ublk_advance_io_iter() and ublk_copy_io_pages() currently open-code the iteration over the request's bvecs. Switch to the rq_for_each_segment() macro provided by blk-mq to avoid reaching into the bio internals and simplify the code. Suggested-by:Ming Lei <ming.lei@redhat.com> Signed-off-by:
Caleb Sander Mateos <csander@purestorage.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>