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
6 current->policy = SCHED_OTHER;
8 + set_user_nice(current,-20);
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
16 * Resync has low priority.
19 + set_user_nice(current,19);
21 is_mddev_idle(mddev); /* this also initializes IO event counters */
22 for (m = 0; m < SYNC_MARKS; m++) {
24 currspeed = (j-mddev->resync_mark_cnt)/2/((jiffies-mddev->resync_mark)/HZ +1) +1;
26 if (currspeed > sysctl_speed_limit_min) {
28 + set_user_nice(current,19);
30 if ((currspeed > sysctl_speed_limit_max) ||
31 !is_mddev_idle(mddev)) {
36 - current->nice = -20;
37 + set_user_nice(current,-20);
39 LOG_DEFAULT("md%d: sync done.\n",mdidx(mddev));