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:
parent
505e6bc117
commit
b5618c07d8
@ -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.
|
||||
|
5
lib/cache/lvmcache.c
vendored
5
lib/cache/lvmcache.c
vendored
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user