Re: [PATCH 07/16] virtio_ring: don't count elements twice for add_buf path.

2013-02-20 Thread Wanlong Gao
On 02/19/2013 03:56 PM, Rusty Russell wrote: > Extract the post-counting code into virtqueue_add(), make both callers > use it. > > Signed-off-by: Rusty Russell Reviewed-by: Wanlong Gao > --- > drivers/virtio/virtio_ring.c | 147 > +++--- > 1 file changed

[PATCH 07/16] virtio_ring: don't count elements twice for add_buf path.

2013-02-19 Thread Rusty Russell
Extract the post-counting code into virtqueue_add(), make both callers use it. Signed-off-by: Rusty Russell --- drivers/virtio/virtio_ring.c | 147 +++--- 1 file changed, 80 insertions(+), 67 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/v