dlm: replace schedule with cond_resched
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Dec 2008 15:31:02 +0000 (09:31 -0600)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Dec 2008 16:16:13 +0000 (10:16 -0600)
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>
fs/dlm/ast.c

index 8bf31e3fbf01fe627be25ed47931ba40d9e70a90..30c11f3855b3b4c21bb83b61209ad4e48f2a7b0a 100644 (file)
@@ -101,7 +101,7 @@ static void process_asts(void)
                   and may result in the lkb being freed */
                dlm_put_lkb(lkb);
 
-               schedule();
+               cond_resched();
        }
 }
 
This page took 0.02867 seconds and 5 git commands to generate.