From: Kurt Hackel Date: Mon, 1 May 2006 21:27:41 +0000 (-0700) Subject: ocfs2: use cond_resched() in dlm_thread() X-Git-Tag: v2.6.18-rc1~594^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f85cd47a5825b77a146bad6870b2ddcf08415c13;p=linux-2.6 ocfs2: use cond_resched() in dlm_thread() yield() does not yield. cond_resched() does. Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c index c1c10fd1a5..0c822f3ffb 100644 --- a/fs/ocfs2/dlm/dlmthread.c +++ b/fs/ocfs2/dlm/dlmthread.c @@ -731,7 +731,7 @@ in_progress: /* yield and continue right away if there is more work to do */ if (!n) { - yield(); + cond_resched(); continue; }