summaryrefslogtreecommitdiffstats
path: root/blockjob.c
diff options
context:
space:
mode:
authorFam Zheng2013-08-23 03:14:50 +0200
committerStefan Hajnoczi2013-09-06 15:25:08 +0200
commit38b54b6dc18ae7e2a32e5ae38b312fb13f0584c8 (patch)
tree851ab3d0f6f967b769ecdb87e5bbf22f4c7d0958 /blockjob.c
parentxen_disk: simplify blk_disconnect with refcnt (diff)
downloadqemu-38b54b6dc18ae7e2a32e5ae38b312fb13f0584c8.tar.gz
qemu-38b54b6dc18ae7e2a32e5ae38b312fb13f0584c8.tar.xz
qemu-38b54b6dc18ae7e2a32e5ae38b312fb13f0584c8.zip
nbd: use BlockDriverState refcnt
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 <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions