mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemuDomainRemoveDiskDevice: Remove special casing for disks on 'sd' bus
SD card disks can't be detached, so it makes no sense to special case them in the unplug code. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2ebb44a957
commit
9e6cca0560
@ -4282,7 +4282,7 @@ qemuDomainRemoveDiskDevice(virQEMUDriver *driver,
|
||||
|
||||
if (!(diskBackend = qemuBlockStorageSourceChainDetachPrepareChardev(chardevAlias)))
|
||||
goto cleanup;
|
||||
} else if (blockdev && !qemuDiskBusIsSD(disk->bus)) {
|
||||
} else if (blockdev) {
|
||||
if (diskPriv->blockjob) {
|
||||
/* the block job keeps reference to the disk chain */
|
||||
diskPriv->blockjob->disk = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user