Commit d61e9aac authored by Steven Whitehouse's avatar Steven Whitehouse Committed by David Teigland

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: default avatarSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 1521848c
......@@ -101,7 +101,7 @@ static void process_asts(void)
and may result in the lkb being freed */
dlm_put_lkb(lkb);
schedule();
cond_resched();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment