]> err.no Git - linux-2.6/commit
ocfs2_dlm: fix race in dlm_remaster_locks
authorSrinivas Eeda <srinivas.eeda@oracle.com>
Tue, 17 Apr 2007 20:26:33 +0000 (13:26 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 20:33:02 +0000 (13:33 -0700)
commit756a1501ddbbe73098aa031939460930f6edc9cd
tree571202550a811b937277e227b27c26a0fcdf8b7c
parentde46c33745f5e2ad594c72f2cf5f490861b16ce1
ocfs2_dlm: fix race in dlm_remaster_locks

There is a possibility that dlm_remaster_locks could overwride node->state
with DLM_RECO_NODE_DATA_REQUESTED after dlm_reco_data_done_handler sets the
node->state to DLM_RECO_NODE_DATA_DONE. This could lead to recovery getting
stuck and requires a cluster reboot. Synchronize with dlm_reco_state_lock
spinlock.

Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmrecovery.c