]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Steven Whitehouse <swhiteho@redhat.com> |
2 | commit d61e9aac96317a43c192f1faabfa95d4d675b7ce | |
3 | Author: Steven Whitehouse <swhiteho@redhat.com> | |
4 | Date: Wed Dec 10 09:31:02 2008 -0600 | |
5 | Subject: dlm: replace schedule with cond_resched | |
6 | ||
7 | This is a one-liner to use cond_resched() rather than schedule() | |
8 | in the ast delivery loop. It should not be necessary to schedule | |
9 | every time, so this will save some cpu time while continuing to | |
10 | allow scheduling when required. | |
11 | ||
12 | Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> | |
13 | Signed-off-by: David Teigland <teigland@redhat.com> | |
14 | Signed-off-by: Coly Li <coly.li@suse.de> | |
15 | ||
16 | --- | |
17 | fs/dlm/ast.c | 2 +- | |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
19 | ||
20 | --- a/fs/dlm/ast.c | |
21 | +++ b/fs/dlm/ast.c | |
22 | @@ -98,7 +98,7 @@ static void process_asts(void) | |
23 | and may result in the lkb being freed */ | |
24 | dlm_put_lkb(lkb); | |
25 | ||
26 | - schedule(); | |
27 | + cond_resched(); | |
28 | } | |
29 | } | |
30 |