From 8c965cafb7fe40ee53d888347159fe29b2662eee Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 19 May 2010 01:49:08 +0000 Subject: [PATCH] Note that orphan lock is always obtained last --- lib/locking/locking.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/locking/locking.h b/lib/locking/locking.h index 7a787accf..6d86d3c1a 100644 --- a/lib/locking/locking.h +++ b/lib/locking/locking.h @@ -36,7 +36,8 @@ int remote_lock_held(const char *vol); * Set LCK_CACHE flag when manipulating 'vol' metadata in the internal cache. * (Like commit, revert or invalidate metadata.) * If more than one lock needs to be held simultaneously, they must be - * acquired in alphabetical order of 'vol' (to avoid deadlocks). + * acquired in alphabetical order of 'vol' (to avoid deadlocks), with + * VG_ORPHANS last. * * LCK_LV: * Lock/unlock an individual logical volume