ocfs2: Check the owner of a lockres inside the spinlock
authorWengang Wang <wen.gang.wang@oracle.com>
Wed, 24 Mar 2010 14:40:44 +0000 (22:40 +0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 30 Mar 2010 19:55:55 +0000 (12:55 -0700)
commit428257f8870f0e72e85ce782d091fa1f366de7df
treeb705c3aa023b88595adb4d18a455e0c67c18a7f2
parenta03ab788d070c256eff1ac24cf0e3bc2ca148096
ocfs2: Check the owner of a lockres inside the spinlock

The checking of lockres owner in dlm_update_lvb() is not inside spinlock
protection. I don't see problem in current call path of dlm_update_lvb().
But just for code robustness.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmast.c