Skip to content

Commit

Permalink
[DLM] schedule during long loop through locks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Jul 26, 2006
1 parent 2b4e926 commit 8145680
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8145680

Please sign in to comment.