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 c1c10fd1a5a7c3aeb84bcc298087c9db4adfbcab..0c822f3ffb05adeeb7a7709d150d34458519e591 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;
                }