dlm: Use cond_resched() in ast delivery loop
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 <[email protected]>
fs/dlm/ast.c +1 -1
@@ -101,7 +101,7 @@ static void process_asts(void)and may result in the lkb being freed */ dlm_put_lkb (lkb); -schedule (); +cond_resched (); } }
David Teigland
maintainerQuoted 5 lines · Steven Whitehouse
This is a one-liner to use
cond_resched()rather thanschedule()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.
Thanks, will queue it up.
Quoted 17 lines
Signed-off-by Steven Whitehouse <[email protected]>fs/dlm/ast.c +1
-1@@ -101,7 +101,7 @@ static void process_asts(void)and may result in the lkb being freed */ dlm_put_lkb (lkb); -schedule (); +cond_resched (); } }