From: David Teigland Date: Tue, 25 Jul 2006 19:05:09 +0000 (-0500) Subject: [DLM] schedule during long loop through locks X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=81456807a33c2122e2f1f92acfbaaa77b3d06c3c;p=linux-beck.git [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 Signed-off-by: Steven Whitehouse --- 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) log_error(ls, "invalid lkb wait_type %d", lkb->lkb_wait_type); } + schedule(); } mutex_unlock(&ls->ls_waiters_mutex); }