This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]