]> sourceware.org Git - lvm2.git/commit
toollib: Avoid a global lock in process_each_pv if lvmetad is used.
authorPetr Rockai <prockai@redhat.com>
Wed, 12 Dec 2012 13:39:52 +0000 (14:39 +0100)
committerPetr Rockai <prockai@redhat.com>
Wed, 12 Dec 2012 13:44:03 +0000 (14:44 +0100)
commitb19f840af82cf176a26c8bddc2217fe862087794
tree0957d807f8cb299f4788483c8bafeb09b5a775f1
parente5709a32be746ad0d21b13df18f23387bcccabef
toollib: Avoid a global lock in process_each_pv if lvmetad is used.

The motivation to grab the global lock is to avoid a scan and metadata parsing
for each PV, but the cost of obtaining metadata is _mostly_ mitigated by having
lvmetad around. Not taking the global lock improves throughput when multiple pvs
or related commands are running in parallel, like in RHEV.
tools/toollib.c
This page took 0.032202 seconds and 5 git commands to generate.