ocfs2/dlm: Ignore LVBs of locks in the Blocked list
authorSunil Mushran <sunil.mushran@oracle.com>
Tue, 26 Jan 2010 00:57:39 +0000 (16:57 -0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 26 Jan 2010 03:20:57 +0000 (19:20 -0800)
commit71656fa6ec10473eb9b646c10a2173fdea2f83c9
treeda6327ad26fb33fd7ecaffa6cd0d6ffb17a9d601
parent2bd632165c1f783888bd4cbed95f2f304829159b
ocfs2/dlm: Ignore LVBs of locks in the Blocked list

During lock resource migration, o2dlm fills the packet with a LVB from the
first valid lock. For sanity, it ensures that the other valid locks have the
same LVB. If not, it BUGs.

The valid locks are ones that have granted EX or PR lock levels and are either
on the Granted or Converting lists. Locks in the Blocked list cannot have a
valid LVB.

This patch ensures that we skip the locks in the Blocked list.

Fixes oss bugzilla#1202
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1202

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmrecovery.c