]> sourceware.org Git - lvm2.git/commit
Remove checking for locked VGs
authorDavid Teigland <teigland@redhat.com>
Mon, 11 Jun 2018 17:25:52 +0000 (12:25 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 12 Jun 2018 14:46:04 +0000 (09:46 -0500)
commitc4153a8dfca9defcea645818dcd547388858c51e
tree89613638df5f2fd064ee269efa1d41c4ff957c1b
parent3b6b7f8f9be1841fc7d283203a1f3261e7e3622a
Remove checking for locked VGs

A few places were calling a function to check if a
VG lock was held.  The only place it was actually
needed is for pvcreate which wants to do its own
locking (and scanning) around process_each_pv.

The locking/scanning exceptions for pvcreate in
process_each_pv/vg_read can be enabled by just passing
a couple of flags instead of checking if the VG is
already locked.  This also means that these special
cases won't be enabled unknowingly in other places
where they shouldn't be used.
lib/cache/lvmcache.c
lib/cache/lvmcache.h
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
tools/toollib.c
This page took 0.037098 seconds and 5 git commands to generate.