1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00

Debug log for hold_lock failure

This commit is contained in:
Zdenek Kabelac 2012-03-01 21:18:38 +00:00
parent 73ef9a7eaa
commit 27088d51a2

View File

@ -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);
}
}
}