block-backend: Allow more "can inactivate" cases
commitca2e214411598154d6b36ea70ba7900fbaeedc93
authorFam Zheng <famz@redhat.com>
Wed, 23 Aug 2017 13:42:40 +0000 (23 21:42 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 23 Aug 2017 15:21:55 +0000 (23 10:21 -0500)
treea93775293c329b048a944b4738773680adf8ed90
parentc16de8f59a2bcbe2dc037524cc648de896f581a4
block-backend: Allow more "can inactivate" cases

These two conditions corresponds to mirror job's source and target,
which need to be allowed as they are part of the non-shared storage
migration workflow: failing to inactivate either will result in a
failure during migration completion.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170823134242.12080-3-famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[eblake: improve comment grammar]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h