aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Hackel <kurt.hackel@oracle.com>2006-05-01 17:27:41 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2006-06-26 17:43:13 -0400
commitf85cd47a5825b77a146bad6870b2ddcf08415c13 (patch)
treeac27e5c432e30d296769071b5f7c88b9af970593
parentad8100e0d20e0123def9f83c040b68c96c8638f0 (diff)
ocfs2: use cond_resched() in dlm_thread()
yield() does not yield. cond_resched() does. Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
-rw-r--r--fs/ocfs2/dlm/dlmthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c
index c1c10fd1a5a7..0c822f3ffb05 100644
--- a/fs/ocfs2/dlm/dlmthread.c
+++ b/fs/ocfs2/dlm/dlmthread.c
@@ -731,7 +731,7 @@ in_progress:
731 731
732 /* yield and continue right away if there is more work to do */ 732 /* yield and continue right away if there is more work to do */
733 if (!n) { 733 if (!n) {
734 yield(); 734 cond_resched();
735 continue; 735 continue;
736 } 736 }
737 737