Re: [Qemu-devel] [PATCH v3 7/7] nbd: use BlockDriverState refcnt

2013-08-02 Thread Wenchao Xia
Reviewed-by: Wenchao Xia > Previously, nbd calls drive_get_ref() on the drive of bs. A BDS doesn't > always have associated dinfo, which nbd doesn't care either. We already > have BDS ref count, so use it to make it safe for a BDS w/o blockdev. > > Signed-off-by: Fam Zheng -- Best Regards

[Qemu-devel] [PATCH v3 7/7] nbd: use BlockDriverState refcnt

2013-07-31 Thread Fam Zheng
Previously, nbd calls drive_get_ref() on the drive of bs. A BDS doesn't always have associated dinfo, which nbd doesn't care either. We already have BDS ref count, so use it to make it safe for a BDS w/o blockdev. Signed-off-by: Fam Zheng --- blockdev-nbd.c | 10 +- nbd.c | 5 +