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

2013-07-25 Thread Jeff Cody
On Thu, Jul 25, 2013 at 09:01:41AM -0400, Jeff Cody wrote: > On Thu, Jul 25, 2013 at 05:01:46PM +0800, Fam Zheng wrote: > > 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

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

2013-07-25 Thread Jeff Cody
On Thu, Jul 25, 2013 at 05:01:46PM +0800, Fam Zheng wrote: > 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:

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

2013-07-25 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 +