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>
This commit is contained in:
Fam Zheng 2014-10-19 12:47:42 +08:00 committed by Paolo Bonzini
parent e40830afa1
commit 3e2b2a9c49
3 changed files with 22 additions and 2 deletions

View file

@ -195,6 +195,7 @@ typedef struct VirtIOSCSI {
bool dataplane_starting;
bool dataplane_stopping;
bool dataplane_disabled;
Error *blocker;
Notifier migration_state_notifier;
} VirtIOSCSI;