]> git.pld-linux.org Git - packages/kernel.git/blob - linux-o1-sched-evms.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / linux-o1-sched-evms.patch
1 --- linux/drivers/evms/evms.c.orig      Fri Apr 19 17:23:41 2002
2 +++ linux/drivers/evms/evms.c   Fri Apr 19 17:24:40 2002
3 @@ -1301,7 +1301,7 @@
4         thread->tsk = current;
5  
6         current->policy = SCHED_OTHER;
7 -       current->nice = -20;
8 +       set_user_nice(current,-20);
9         unlock_kernel();
10         
11         complete(thread->event);
12 --- linux/drivers/evms/md_core.c.orig   Fri Apr 19 17:23:48 2002
13 +++ linux/drivers/evms/md_core.c        Fri Apr 19 17:25:41 2002
14 @@ -2677,7 +2677,7 @@
15         /*
16          * Resync has low priority.
17          */
18 -       current->nice = 19;
19 +       set_user_nice(current,19);
20  
21         is_mddev_idle(mddev); /* this also initializes IO event counters */
22         for (m = 0; m < SYNC_MARKS; m++) {
23 @@ -2756,7 +2756,7 @@
24                 currspeed = (j-mddev->resync_mark_cnt)/2/((jiffies-mddev->resync_mark)/HZ +1) +1;
25  
26                 if (currspeed > sysctl_speed_limit_min) {
27 -                       current->nice = 19;
28 +                       set_user_nice(current,19);
29  
30                         if ((currspeed > sysctl_speed_limit_max) ||
31                                         !is_mddev_idle(mddev)) {
32 @@ -2765,7 +2765,7 @@
33                                 goto repeat;
34                         }
35                 } else
36 -                       current->nice = -20;
37 +                       set_user_nice(current,-20);
38         }
39         LOG_DEFAULT("md%d: sync done.\n",mdidx(mddev));
40         err = 0;
This page took 0.028525 seconds and 3 git commands to generate.