Martin Polednik has uploaded a new change for review.

Change subject: hostdev: properly teardown on hotunplug
......................................................................

hostdev: properly teardown on hotunplug

The device teardown mechanism is not explicitly invoked in hotunplug
routines due to their separation. We add it to hostdev hotunplug to
make sure that there are no loose udev files as they previously were
left orphaned.

Change-Id: I6af53a48e92c666da915e9c9e6b1ba8f8cd522ba
Signed-off-by: Martin Polednik <[email protected]>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/60706/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 0198bf1..9dca87e 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2272,6 +2272,7 @@
                 self._hostdev_hotunplug_restore(dev_object, dev_spec)
                 continue
 
+            dev_object.teardown()
             unplugged_devices.append(dev_name)
 
         return response.success(unpluggedDevices=unplugged_devices)


-- 
To view, visit https://gerrit.ovirt.org/60706
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6af53a48e92c666da915e9c9e6b1ba8f8cd522ba
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to