]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74d1c7622e289eaff07b71b56eef1be6cf6b161d
treebae70a13bcefc1ae501aa96d5b0a9623028b0315
parentc5906b6a94d5fa7698a0cf2ad5329152517d00f9
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