On 2015-02-11 at 22:07, Wen Congyang wrote:
Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> --- block.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
Our current stance on BlockBackends is (as far as I know, anyway) that a BlockBackend always comes with a user. In case you're creating a BlockBackend through -drive or blockdev-add, the user is the monitor (which can use it to attach it to a device, for instance). In this case, there is no user and nobody holds a reference to the BB (other than the BDS, but that doesn't count).
Therefore, this patch doesn't look quite right. Max