commit 9cff3357bd69f15497af8c03774df07081d361dd Author: Peter Rajnoha Date: Tue May 14 11:04:08 2013 +0200 lvm2-2_02_99-avoid-global-lock-in-pvs-when-lvmetad-is-in-use.patch --- WHATS_NEW | 1 + tools/toollib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 62efb53..25e07ee 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Avoid a global lock in pvs when lvmetad is in use. Fix crash in pvscan --cache -aay triggered by non-mda PV. Fix lvm2app to return all property sizes in bytes. Add lvm.conf option global/thin_disabled_features. diff --git a/tools/toollib.c b/tools/toollib.c index 5fe94e0..dce42f4 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -701,7 +701,7 @@ int process_each_pv(struct cmd_context *cmd, int argc, char **argv, int opt = 0; int ret_max = ECMD_PROCESSED; int ret = 0; - int lock_global = !(flags & READ_WITHOUT_LOCK) && !(flags & READ_FOR_UPDATE); + int lock_global = !(flags & READ_WITHOUT_LOCK) && !(flags & READ_FOR_UPDATE) && !lvmetad_active(); struct pv_list *pvl; struct physical_volume *pv;