[lvm-devel] LVM2/lib/cache lvmcache.c

agk at sourceware.org agk at sourceware.org
Fri Jun 6 12:43:41 UTC 2008


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk at 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);




More information about the lvm-devel mailing list