virtio-scsi-dataplane: Add op blocker
commit3e2b2a9c49f44926b995495be5e94e61e4f29f5e
authorFam Zheng <famz@redhat.com>
Sun, 19 Oct 2014 04:47:42 +0000 (19 12:47 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Oct 2014 14:41:22 +0000 (23 16:41 +0200)
tree0e637dd056123a66c2c8eaed854e97c8cd894808
parente40830afa1cff3ffdc37bdfdd40d80860074636c
virtio-scsi-dataplane: Add op blocker

We need this to protect dataplane thread from race conditions with block
jobs until the latter is made dataplane-safe.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi-dataplane.c
hw/scsi/virtio-scsi.c
include/hw/virtio/virtio-scsi.h