From: Paolo Bonzini Date: Wed, 20 Mar 2013 05:14:27 +0000 (+1030) Subject: virtio-blk: use virtqueue_add_sgs on bio path X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~63^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f39db9d3709afe944710f124111ec87467d25c7;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell Reviewed-by: Asias He --- Reading git-diff-tree failed