Skip to content

Commit

Permalink
ocfs2: use cond_resched() in dlm_thread()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kurt Hackel authored and Mark Fasheh committed Jun 26, 2006
1 parent ad8100e commit f85cd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/dlm/dlmthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static int dlm_thread(void *data)

/* yield and continue right away if there is more work to do */
if (!n) {
yield();
cond_resched();
continue;
}

Expand Down

0 comments on commit f85cd47

Please sign in to comment.