Re: [FIX] Re: 2.5.70-bk[56] breaks disk partitioning with multiple IDE disks

viro@parcelfarce.linux.theplanet.co.uk
Mon, 2 Jun 2003 03:09:03 +0100


On Sun, Jun 01, 2003 at 06:49:41PM -0700, Linus Torvalds wrote:
>
> On Mon, 2 Jun 2003 viro@parcelfarce.linux.theplanet.co.uk wrote:
> >
> > vi drivers/ide/ide.c -c'/drive->list.*driver->drives/s/list_add/&_tail/|x'
>
> Mind sending me a patch? There's only so much I like doing with vi
> scripts, and this went over my threshold.

No problem...

--- drivers/ide/ide.c Sat May 31 15:31:08 2003
+++ /tmp/ide.c Sun Jun 1 19:50:38 2003
@@ -2335,7 +2335,7 @@
setup_driver_defaults(drive);
spin_unlock_irqrestore(&ide_lock, flags);
spin_lock(&drives_lock);
- list_add(&drive->list, &driver->drives);
+ list_add_tail(&drive->list, &driver->drives);
spin_unlock(&drives_lock);
// printk(KERN_INFO "%s: attached %s driver.\n", drive->name, driver->name);
if ((drive->autotune == IDE_TUNE_DEFAULT) ||
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/