]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/dlm-replace-schedule-with-cond_resched.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / dlm-replace-schedule-with-cond_resched.patch
CommitLineData
2cb7cef9
BS
1From: Steven Whitehouse <swhiteho@redhat.com>
2commit d61e9aac96317a43c192f1faabfa95d4d675b7ce
3Author: Steven Whitehouse <swhiteho@redhat.com>
4Date: Wed Dec 10 09:31:02 2008 -0600
5Subject: 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
12Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
13Signed-off-by: David Teigland <teigland@redhat.com>
14Signed-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