diff options
author | Kurt Hackel <kurt.hackel@oracle.com> | 2007-01-17 17:59:12 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-02-07 15:05:19 -0500 |
commit | a6fa36402aba96362311318200d710ea1719e59b (patch) | |
tree | 59c52d0437c99f55a89dfa08dc25508b2414bbcb /fs/ocfs2/dlm/dlmrecovery.c | |
parent | 28b72d9c92ed43e01e4094f57bcad1814b002779 (diff) |
ocfs2_dlm: wake up sleepers on the lockres waitqueue
The dlm was not waking up threads waiting on the lockres wait queue,
waiting for the lockres to be no longer be in the DLM_LOCK_RES_IN_PROGRESS
and the DLM_LOCK_RES_MIGRATING states.
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmrecovery.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 8c60ccc7460c..e57636c399f4 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -1420,6 +1420,7 @@ int dlm_mig_lockres_handler(struct o2net_msg *msg, u32 len, void *data) | |||
1420 | spin_lock(&res->spinlock); | 1420 | spin_lock(&res->spinlock); |
1421 | res->state &= ~DLM_LOCK_RES_IN_PROGRESS; | 1421 | res->state &= ~DLM_LOCK_RES_IN_PROGRESS; |
1422 | spin_unlock(&res->spinlock); | 1422 | spin_unlock(&res->spinlock); |
1423 | wake_up(&res->wq); | ||
1423 | 1424 | ||
1424 | /* add an extra ref for just-allocated lockres | 1425 | /* add an extra ref for just-allocated lockres |
1425 | * otherwise the lockres will be purged immediately */ | 1426 | * otherwise the lockres will be purged immediately */ |