[PATCH] 2.4.0-test[34] md.c compile fix

From: Barry K. Nathan (barryn@cx518206-b.irvn1.occa.home.com)
Date: Wed Jul 12 2000 - 14:58:30 EST


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/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:15 EST