From: Paolo Bonzini Date: Wed, 20 Mar 2013 05:14:27 +0000 (+1030) Subject: virtio-blk: use virtqueue_add_sgs on req path X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~63^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20af3cfd20145fece208ada7cb10e1fd7f21f128;p=pandora-kernel.git virtio-blk: use virtqueue_add_sgs on req path (This is a respin of Paolo Bonzini's patch, but it calls virtqueue_add_sgs() instead of his multi-part API). This is similar to the previous patch, but a bit more radical because the bio and req paths now share the buffer construction code. Because the req path doesn't use vbr->sg, however, we need to add a couple of arguments to __virtblk_add_req. We also need to teach __virtblk_add_req how to build SCSI command requests. Signed-off-by: Paolo Bonzini Signed-off-by: Rusty Russell Reviewed-by: Asias He --- Reading git-diff-tree failed