forked from pool/libvirt
add workaround patch for xen driver connection ref counting
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=9
This commit is contained in:
parent
6c068493c0
commit
abfa267bc5
@ -92,6 +92,7 @@ Patch102: migrate-params.patch
|
||||
Patch103: xen-pv-cdrom.patch
|
||||
Patch104: detach-disk.patch
|
||||
Patch105: vshdeinit-recurse.patch
|
||||
Patch106: xen-refcnt.patch
|
||||
# Our patches
|
||||
Patch200: libvirtd-defaults.patch
|
||||
Patch201: suse-network.patch
|
||||
@ -195,6 +196,7 @@ Authors:
|
||||
%patch103 -p1
|
||||
%patch104 -p1
|
||||
%patch105 -p1
|
||||
%patch106 -p1
|
||||
%patch200 -p1
|
||||
%patch201 -p1
|
||||
%patch202 -p1
|
||||
|
33
xen-refcnt.patch
Normal file
33
xen-refcnt.patch
Normal file
@ -0,0 +1,33 @@
|
||||
Index: libvirt-0.7.1/src/xen_inotify.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.1.orig/src/xen_inotify.c
|
||||
+++ libvirt-0.7.1/src/xen_inotify.c
|
||||
@@ -463,7 +463,6 @@ xenInotifyOpen(virConnectPtr conn ATTRIB
|
||||
DEBUG0("Failed to add inotify handle, disabling events");
|
||||
}
|
||||
|
||||
- virConnectRef(conn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -486,7 +485,6 @@ xenInotifyClose(virConnectPtr conn)
|
||||
if (priv->inotifyWatch != -1)
|
||||
virEventRemoveHandle(priv->inotifyWatch);
|
||||
close(priv->inotifyFD);
|
||||
- virUnrefConnect(conn);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Index: libvirt-0.7.1/src/xs_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.1.orig/src/xs_internal.c
|
||||
+++ libvirt-0.7.1/src/xs_internal.c
|
||||
@@ -1140,8 +1140,6 @@ int xenStoreAddWatch(virConnectPtr conn,
|
||||
list->watches[n] = watch;
|
||||
list->count++;
|
||||
|
||||
- conn->refs++;
|
||||
-
|
||||
return xs_watch(priv->xshandle, watch->path, watch->token);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user