Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Steven Whitehouse and committed by
David Teigland
d61e9aac 1521848c

+1 -1
+1 -1
fs/dlm/ast.c
··· 101 101 and may result in the lkb being freed */ 102 102 dlm_put_lkb(lkb); 103 103 104 - schedule(); 104 + cond_resched(); 105 105 } 106 106 } 107 107