Re: [PATCH 4/9] virtio-blk: use virtqueue_start_buf on req path

2013-02-18 Thread Paolo Bonzini
Il 17/02/2013 07:37, Asias He ha scritto: >> > static int __virtblk_add_req(struct virtqueue *vq, >> > - struct virtblk_req *vbr) >> > + struct virtblk_req *vbr, >> > + struct scatterlist *data_sg, >> > + unsig

Re: [PATCH 4/9] virtio-blk: use virtqueue_start_buf on req path

2013-02-16 Thread Asias He
On 02/12/2013 08:23 PM, Paolo Bonzini wrote: > 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. >

[PATCH 4/9] virtio-blk: use virtqueue_start_buf on req path

2013-02-12 Thread Paolo Bonzini
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 SC