virtio-scsi: use virtqueue_add_sgs for command buffers
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Wed, 20 Mar 2013 05:14:28 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:59 +0000 (15:44 +1030)
commit682993b4e445bdfe9935d5e6e298565b7e11d7ee
treebae70a13bcefc1ae501aa96d5b0a9623028b0315
parent0a11cc36f7b33fa2de0ad95199d2f2ab896fbd93
virtio-scsi: use virtqueue_add_sgs for command buffers

Using the new virtqueue_add_sgs function lets us simplify the queueing
path.  In particular, all data protected by the tgt_lock is just gone
(multiqueue will find a new use for the lock).

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Asias He <asias@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/scsi/virtio_scsi.c