Commit f85cd47a authored by Kurt Hackel's avatar Kurt Hackel Committed by Mark Fasheh

ocfs2: use cond_resched() in dlm_thread()

yield() does not yield.  cond_resched() does.
Signed-off-by: default avatarKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent ad8100e0
...@@ -731,7 +731,7 @@ static int dlm_thread(void *data) ...@@ -731,7 +731,7 @@ static int dlm_thread(void *data)
/* yield and continue right away if there is more work to do */ /* yield and continue right away if there is more work to do */
if (!n) { if (!n) {
yield(); cond_resched();
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment