diff options
| author | Fam Zheng <famz@redhat.com> | 2013-08-23 09:14:51 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-09-06 15:25:08 +0200 |
| commit | fa510ebffa1fd509323e2e0888e369e23adbb508 (patch) | |
| tree | 62bb139b70cfe5d10f692e0c96104cf910e0221c /scripts/qapi.py | |
| parent | 38b54b6dc18ae7e2a32e5ae38b312fb13f0584c8 (diff) | |
| download | focaccia-qemu-fa510ebffa1fd509323e2e0888e369e23adbb508.tar.gz focaccia-qemu-fa510ebffa1fd509323e2e0888e369e23adbb508.zip | |
block: use BDS ref for block jobs
Block jobs used drive_get_ref(drive_get_by_blockdev(bs)) to avoid BDS being deleted. Now we have BDS reference count, and block jobs don't care about dinfo, so replace them to get cleaner code. It is also the safe way when BDS has no drive info. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions