diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-12 01:43:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-12 01:43:08 +0000 |
commit | f4ae78d536e6dfaeb24c01b331fc38d950ed062b (patch) | |
tree | 6930a78aa7cc4ee1829d50d3bcbaf0dbe9e2e905 /drivers/block/md.c | |
parent | 66f20d0f9bd86dc11f3869d78f3c5749789323ee (diff) |
Merge with 2.4.0-test4-pre2.
Diffstat (limited to 'drivers/block/md.c')
-rw-r--r-- | drivers/block/md.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/md.c b/drivers/block/md.c index 058c001c7..651c3dd6d 100644 --- a/drivers/block/md.c +++ b/drivers/block/md.c @@ -2908,7 +2908,7 @@ int md_thread(void * arg) * many dirty RAID5 blocks. */ current->policy = SCHED_OTHER; - current->priority = 40; + current->nice = -20; // md_unlock_kernel(); up(thread->sem); @@ -3336,7 +3336,7 @@ recheck: /* * Resync has low priority. */ - current->priority = 1; + current->nice = 19; is_mddev_idle(mddev); /* this also initializes IO event counters */ for (m = 0; m < SYNC_MARKS; m++) { @@ -3412,7 +3412,7 @@ repeat: currspeed = (j-mddev->resync_mark_cnt)/((jiffies-mddev->resync_mark)/HZ +1) +1; if (currspeed > sysctl_speed_limit_min) { - current->priority = 1; + current->priority = 19; if ((currspeed > sysctl_speed_limit_max) || !is_mddev_idle(mddev)) { @@ -3422,7 +3422,7 @@ repeat: goto repeat; } } else - current->priority = 40; + current->priority = -20; } fsync_dev(read_disk); printk(KERN_INFO "md: md%d: sync done.\n",mdidx(mddev)); |