1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Exclude VG_GLOBAL from internal concurrent VG lock counter.

(Avoids 'device left open' warning messages from vgscan etc.)
This commit is contained in:
Alasdair Kergon 2008-04-24 02:22:07 +00:00
parent 505e6bc117
commit b5618c07d8
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,9 @@
Version 2.02.36 -
=================================
Exclude VG_GLOBAL from internal concurrent VG lock counter.
Fix vgsplit internal counting of snapshot LVs.
Fix internal snapshot_count when vgmerge with snapshots in source VG.
Simply clvmd-openais by using non-async saLckResourceLock.
Fix vgmerge snapshot_count when source VG contains snapshots.
Simplify clvmd-openais by using non-async saLckResourceLock.
Check lv_count in vg_validate.
Fix internal LV counter when a snapshot is removed.
Fix metadata corruption writing lvm1-formatted metadata with snapshots.

View File

@ -156,7 +156,8 @@ void lvmcache_lock_vgname(const char *vgname, int read_only __attribute((unused)
_update_cache_lock_state(vgname, 1);
_vgs_locked++;
if (strcmp(vgname, VG_GLOBAL))
_vgs_locked++;
}
int vgname_is_locked(const char *vgname)
@ -178,7 +179,7 @@ void lvmcache_unlock_vgname(const char *vgname)
dm_hash_remove(_lock_hash, vgname);
/* FIXME Do this per-VG */
if (!--_vgs_locked)
if (strcmp(vgname, VG_GLOBAL) && !--_vgs_locked)
dev_close_all();
}