Re: [PATCH] kvm tools: Improve virtio blk request processing

2011-11-28 Thread Pekka Enberg
On Mon, Nov 28, 2011 at 7:34 AM, Asias He asias.he...@gmail.com wrote: There are at most bdev-reqs[VIRTIO_BLK_QUEUE_SIZE] outstanding requests at any time.  We can simply use the head of each request to fetch the right 'struct blk_dev_req' in bdev-reqs[]. So, we can eliminate the list and

[PATCH] kvm tools: Improve virtio blk request processing

2011-11-27 Thread Asias He
There are at most bdev-reqs[VIRTIO_BLK_QUEUE_SIZE] outstanding requests at any time. We can simply use the head of each request to fetch the right 'struct blk_dev_req' in bdev-reqs[]. So, we can eliminate the list and lock operations which introduced by virtio_blk_req_{pop, push}.