]> sourceware.org Git - lvm2.git/commit
vgchange autoactivation: lock vg early to avoid second label scan
authorDavid Teigland <teigland@redhat.com>
Wed, 10 Nov 2021 22:43:21 +0000 (16:43 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 10 Nov 2021 22:50:50 +0000 (16:50 -0600)
commit0e0faf30e01f78828b7e240f57217755b62650bb
tree8079a0950f8a072898facb008ec46a8d16cdf08b
parent92e741eda060b4712fab5b37e0bee2cc5e155a57
vgchange autoactivation: lock vg early to avoid second label scan

Copy another optimization from pvscan -aay to vgchange -aay.
When using the optimized label scan for only one VG, acquire the
VG lock prior to the scan.  This allows vg_read to then skip the
repeated label scan that normally happens after locking the vg.
lib/label/label.c
test/shell/vgchange-pvs-online.sh
tools/vgchange.c
This page took 0.045129 seconds and 5 git commands to generate.