]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-blk: reorganize virtblk_add_req
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Mar 2013 05:14:27 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:54 +0000 (15:44 +1030)
commit916c524e0fd3f33d5b9ffcea891e6bc2af76568e
tree99b49e570c77cd7c7114a0d999257e21d2ca144b
parentcd8a6ba3a94004903d0ba2f835cab90bd98c9e44
virtio-blk: reorganize virtblk_add_req

Right now, both virtblk_add_req and virtblk_add_req_wait call
virtqueue_add_buf.  To prepare for the next patches, abstract the call
to virtqueue_add_buf into a new function __virtblk_add_req, and include
the waiting logic directly in virtblk_add_req.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Asias He <asias@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c