提交 d61e9aac 编写于 作者: S Steven Whitehouse 提交者: David Teigland

dlm: replace schedule with cond_resched

This is a one-liner to use cond_resched() rather than schedule()
in the ast delivery loop. It should not be necessary to schedule
every time, so this will save some cpu time while continuing to
allow scheduling when required.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 1521848c
......@@ -101,7 +101,7 @@ static void process_asts(void)
and may result in the lkb being freed */
dlm_put_lkb(lkb);
schedule();
cond_resched();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册