瀏覽代碼

[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>
David Teigland 19 年之前
父節點
當前提交
81456807a3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/dlm/lock.c

+ 1 - 0
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);
 }