virtio-scsi: push vq lock/unlock into virtscsi_vq_done
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 13:32:07 +0000 (23:02 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Apr 2013 13:36:53 +0000 (23:06 +0930)
commit10f34f64d3a50912ae49c67c08c9162effdf546a
tree0f5bfa34fdd3f94670362affa42720b03aedee4c
parent7f82b3c9158f3ce8eb9eaf0320a359de9ab6392c
virtio-scsi: push vq lock/unlock into virtscsi_vq_done

Avoid duplicated code in all of the callers.

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