aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-12-10 10:31:02 -0500
committerDavid Teigland <teigland@redhat.com>2008-12-23 11:16:13 -0500
commitd61e9aac96317a43c192f1faabfa95d4d675b7ce (patch)
treed6e256d8394c4458012c1673ff4d5741d893b87a /fs/dlm
parent1521848cbb42935a52d11305c054b14461ad061c (diff)
dlm: replace schedule with cond_resched
This is a one-liner to use cond_resched() rather than schedule() in the ast delivery loop. It should not be necessary to schedule every time, so this will save some cpu time while continuing to allow scheduling when required. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c
index 8bf31e3fbf01..30c11f3855b3 100644
--- a/fs/dlm/ast.c
+++ b/fs/dlm/ast.c
@@ -101,7 +101,7 @@ static void process_asts(void)
101 and may result in the lkb being freed */ 101 and may result in the lkb being freed */
102 dlm_put_lkb(lkb); 102 dlm_put_lkb(lkb);
103 103
104 schedule(); 104 cond_resched();
105 } 105 }
106} 106}
107 107