diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-03-20 15:44:27 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-20 15:44:54 +1030 |
commit | 8f39db9d3709afe944710f124111ec87467d25c7 (patch) | |
tree | 7ce3ac8d3b9d6fc47e9fc0a0edeb5c2e094242f0 /ipc | |
parent | 5ee21a52c05b5670ceeaa502c15cf306e379f714 (diff) |
virtio-blk: use virtqueue_add_sgs on bio path
(This is a respin of Paolo Bonzini's patch, but it calls
virtqueue_add_sgs() instead of his multi-part API).
Move the creation of the request header and response footer to
__virtblk_add_req. vbr->sg only contains the data scatterlist,
the header/footer are added separately using virtqueue_add_sgs().
With this change, virtio-blk (with use_bio) is not relying anymore on
the virtio functions ignoring the end markers in a scatterlist.
The next patch will do the same for the other path.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Asias He <asias@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions