]> sourceware.org Git - lvm2.git/commit
lvmlockd: avoid lockd_vg for local VGs
authorDavid Teigland <teigland@redhat.com>
Wed, 12 Jun 2024 20:36:45 +0000 (15:36 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 27 Jun 2024 18:29:03 +0000 (13:29 -0500)
commitbf60cb4da23cac2f6b721170dd0d8bfd38b16466
tree9f7d369fe6a580842de64fbf16e35ff0a74efc4d
parent1b9bf5007bbfba5bcd622f039a099e6f7e0a8162
lvmlockd: avoid lockd_vg for local VGs

Previously, a command would call lockd_vg() for a local VG,
which would go to lvmlockd, which would send back ENOLS,
and the command would not care when it saw the VG was local.
The pointless back-and-forth to lvmlockd for local VGs can
be avoided by checking the VG lock_type in lvmcache (which
label_scan now saves there; this wasn't the case back when
the original lockd_vg logic was added.)  If the lock_type
saved during label_scan indicates a local VG, then the
lockd_vg step is skipped.
lib/cache/lvmcache.c
lib/cache/lvmcache.h
lib/locking/lvmlockd.c
tools/lvconvert.c
tools/polldaemon.c
tools/toollib.c
This page took 0.040348 seconds and 5 git commands to generate.