提交 f85cd47a 编写于 作者: K Kurt Hackel 提交者: Mark Fasheh

ocfs2: use cond_resched() in dlm_thread()

yield() does not yield.  cond_resched() does.
Signed-off-by: NKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 ad8100e0
......@@ -731,7 +731,7 @@ static int dlm_thread(void *data)
/* yield and continue right away if there is more work to do */
if (!n) {
yield();
cond_resched();
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册