--- linux-2.6.0-test11/drivers/md/md.c 2003-11-26 18:43:29.000000000 -0200 +++ linux/drivers/md/md.c 2003-12-10 23:29:33.000000000 -0200 @@ -3290,6 +3290,8 @@ currspeed = (j-mddev->resync_mark_cnt)/2/((jiffies-mddev->resync_mark)/HZ +1) +1;
if (currspeed > sysctl_speed_limit_min) { + set_user_nice(current,19); + if ((currspeed > sysctl_speed_limit_max) || !is_mddev_idle(mddev)) { current->state = TASK_INTERRUPTIBLE; @@ -3297,6 +3299,8 @@ goto repeat; } } + else + set_user_nice(current,-20); } printk(KERN_INFO "md: md%d: sync done.\n",mdidx(mddev)); /*
For what've seen, this causes no harm at all.
Can anyone confirm that this is the right thing to do with the "blocking" issue?
[]s Fernando
- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html