]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit510b24fe81100b75c7cfaebe835a1368b67490c3
treeda6327ad26fb33fd7ecaffa6cd0d6ffb17a9d601
parent382be0d81eac41a74bd7449a0ad0dc62472ba384
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