This is the mail archive of the
lvm2-cvs@sourceware.org
mailing list for the LVM2 project.
LVM2/lib/cache lvmcache.c
- From: agk at sourceware dot org
- To: lvm-devel at redhat dot com, lvm2-cvs at sourceware dot org
- Date: 6 Jun 2008 12:43:41 -0000
- Subject: LVM2/lib/cache lvmcache.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2008-06-06 12:43:41
Modified files:
lib/cache : lvmcache.c
Log message:
fix _free_vginfo not to remove a ref to a *different* vginfo from the vgid cache
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.55&r2=1.56
--- LVM2/lib/cache/lvmcache.c 2008/06/06 11:12:50 1.55
+++ LVM2/lib/cache/lvmcache.c 2008/06/06 12:43:40 1.56
@@ -651,7 +651,8 @@
if (vginfo->creation_host)
dm_free(vginfo->creation_host);
- if (*vginfo->vgid && _vgid_hash)
+ if (*vginfo->vgid && _vgid_hash &&
+ vginfo_from_vgid(vginfo->vgid) == vginfo)
dm_hash_remove(_vgid_hash, vginfo->vgid);
list_del(&vginfo->list);