diff options
author | David Teigland <teigland@redhat.com> | 2006-07-25 19:05:09 (GMT) |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-26 12:42:57 (GMT) |
commit | 81456807a33c2122e2f1f92acfbaaa77b3d06c3c (patch) | |
tree | 5b6d5ed0aa171d564e343b1c51105a79757506eb /fs/dlm | |
parent | 2b4e926aab7c854a536beee6ba8b9a78a9e00316 (diff) | |
download | linux-fsl-qoriq-81456807a33c2122e2f1f92acfbaaa77b3d06c3c.tar.xz |
[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')
-rw-r--r-- | fs/dlm/lock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index eaad28e..7d38f91 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -3193,6 +3193,7 @@ void dlm_recover_waiters_pre(struct dlm_ls *ls) log_error(ls, "invalid lkb wait_type %d", lkb->lkb_wait_type); } + schedule(); } mutex_unlock(&ls->ls_waiters_mutex); } |