diff options
author | Kurt Hackel <kurt.hackel@oracle.com> | 2006-05-01 23:27:41 +0200 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-26 23:43:13 +0200 |
commit | f85cd47a5825b77a146bad6870b2ddcf08415c13 (patch) | |
tree | ac27e5c432e30d296769071b5f7c88b9af970593 /fs/ocfs2 | |
parent | ocfs2: use GFP_NOFS in some dlm operations (diff) | |
download | linux-f85cd47a5825b77a146bad6870b2ddcf08415c13.tar.xz linux-f85cd47a5825b77a146bad6870b2ddcf08415c13.zip |
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>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dlm/dlmthread.c | 2 |
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: /* yield and continue right away if there is more work to do */ if (!n) { - yield(); + cond_resched(); continue; } |