aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/lock.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-07-25 15:05:09 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-26 08:42:57 -0400
commit81456807a33c2122e2f1f92acfbaaa77b3d06c3c (patch)
tree5b6d5ed0aa171d564e343b1c51105a79757506eb /fs/dlm/lock.c
parent2b4e926aab7c854a536beee6ba8b9a78a9e00316 (diff)
[DLM] schedule during long loop through locks
The loop through all waiting locks in recover_waiters can potentially be long, so we should schedule explicitly. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/lock.c')
-rw-r--r--fs/dlm/lock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index eaad28e51ec9..7d38f914c5b9 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -3193,6 +3193,7 @@ void dlm_recover_waiters_pre(struct dlm_ls *ls)
3193 log_error(ls, "invalid lkb wait_type %d", 3193 log_error(ls, "invalid lkb wait_type %d",
3194 lkb->lkb_wait_type); 3194 lkb->lkb_wait_type);
3195 } 3195 }
3196 schedule();
3196 } 3197 }
3197 mutex_unlock(&ls->ls_waiters_mutex); 3198 mutex_unlock(&ls->ls_waiters_mutex);
3198} 3199}