]> sourceware.org Git - lvm2.git/commit
Skip unnecessary lock_vol() call after volume deactivation
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 13 Jan 2011 14:56:17 +0000 (14:56 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 13 Jan 2011 14:56:17 +0000 (14:56 +0000)
commit6470c383b26ade429ded2889db9a238ee135f789
treec89dfd7398abb528ee5ed265f8771514c6cff49c
parentcbfb6504a825f9561dd8f256e26b4f72b594ae44
Skip unnecessary lock_vol() call after volume deactivation

Improve condition within lock_vol so we are not calling extra unlock
if the volume just has been deactivated.

Patch uses lck_type and replaces negative 'and' condition to more
readable 'or' condition.
Few missing strace traces added.
WHATS_NEW
lib/locking/locking.c
This page took 0.033038 seconds and 5 git commands to generate.