|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 3 of 9] libxl: fix for libxl not waiting for devices
# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
# Date 1317386335 -7200
# Node ID 31b3caad18ac904a242c5bd1ea2bb0e574cd0453
# Parent d10abc15d963b00658405be71981f5726e24c0aa
libxl: fix for libxl not waiting for devices to disconnect
libxl was ignoring the timeout and the number of devices to wait before
destroying them.
Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
diff -r d10abc15d963 -r 31b3caad18ac tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c Fri Sep 30 14:38:55 2011 +0200
+++ b/tools/libxl/libxl_device.c Fri Sep 30 14:38:55 2011 +0200
@@ -422,6 +422,9 @@ static int wait_for_dev_destroy(libxl__g
}
free(l1);
}
+ } else {
+ /* timeout reached */
+ rc = 0;
}
return rc;
}
@@ -482,7 +485,7 @@ int libxl__devices_destroy(libxl__gc *gc
tv.tv_usec = 0;
while (n_watches > 0) {
if (wait_for_dev_destroy(gc, &tv)) {
- break;
+ continue;
} else {
n_watches--;
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 0 of 9] Call hotplug scripts from libxl, Roger Pau Monne
- [Xen-devel] [PATCH 1 of 9] xenbackendd: fix incorrect usage of pidfile, Roger Pau Monne
- [Xen-devel] [PATCH 2 of 9] xenbackendd: pass type of block device to hotplug script, Roger Pau Monne
- [Xen-devel] [PATCH 3 of 9] libxl: fix for libxl not waiting for devices to disconnect,
Roger Pau Monne <=
- [Xen-devel] [PATCH 4 of 9] libxl: create pci backend only when there are pci devices, Roger Pau Monne
- [Xen-devel] [PATCH 5 of 9] libxl: only use interactive PyGrub mode when a console is attached, Roger Pau Monne
- [Xen-devel] [PATCH 6 of 9] libxl: add support for image files for NetBSD, Roger Pau Monne
- [Xen-devel] [PATCH 7 of 9] libxl: execute hotplug scripts directly from libxl, Roger Pau Monne
- [Xen-devel] [PATCH 8 of 9] hotplug NetBSD: detach devices when state is 5 or 6, Roger Pau Monne
- [Xen-devel] [PATCH 9 of 9] rc.d NetBSD: don't start xenbackendd by default, only when xend needs it, Roger Pau Monne
|
|
|
|
|