ocfs2: use cond_resched() in dlm_thread()
authorKurt Hackel <kurt.hackel@oracle.com>
Mon, 1 May 2006 21:27:41 +0000 (14:27 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 26 Jun 2006 21:43:13 +0000 (14:43 -0700)
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>
fs/ocfs2/dlm/dlmthread.c

index c1c10fd..0c822f3 100644 (file)
@@ -731,7 +731,7 @@ in_progress:
 
                /* yield and continue right away if there is more work to do */
                if (!n) {
-                       yield();
+                       cond_resched();
                        continue;
                }