diff options
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r-- | daemons/clvmd/lvm-functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index e02e7731..2cee7308 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -767,7 +767,8 @@ static int get_initial_state(struct dm_hash_table *excl_uuid) LCK_EXCL : LCK_READ; DEBUGLOG("getting initial lock for %s\n", uuid); - hold_lock(uuid, lock_mode, LCKF_NOQUEUE); + if (hold_lock(uuid, lock_mode, LCKF_NOQUEUE)) + DEBUGLOG("Failed to hold lock %s\n", uuid); } } } |