Commit 81456807 authored by David Teigland's avatar David Teigland Committed by Steven Whitehouse
Browse files

[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: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 2b4e926a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}