lkml.org 
[lkml]   [2000]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.4.0-test[34] md.c compile fix
Date
Looks like the priority-to-nice conversion was mostly, but not completely,
done for this file. This patch finishes it.

-Barry K. Nathan <barryn@pobox.com>

--- linux-2.4.0-test4-pre4/drivers/block/md.c Wed Jul 12 10:33:57 2000
+++ linux-2.4.0-test4-pre4-bkn/drivers/block/md.c Wed Jul 12 12:53:08 2000
@@ -3412,7 +3412,7 @@
currspeed = (j-mddev->resync_mark_cnt)/((jiffies-mddev->resync_mark)/HZ +1) +1;

if (currspeed > sysctl_speed_limit_min) {
- current->priority = 19;
+ current->nice = 19;

if ((currspeed > sysctl_speed_limit_max) ||
!is_mddev_idle(mddev)) {
@@ -3422,7 +3422,7 @@
goto repeat;
}
} else
- current->priority = -20;
+ current->nice = -20;
}
fsync_dev(read_disk);
printk(KERN_INFO "md: md%d: sync done.\n",mdidx(mddev));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.027 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site