[lkml]   [2002]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: IDE hang, partition strangeness
On  1 Aug 02 at 23:56, Andrew Morton wrote:
> >
> > Seems that the partitioning code in 2.5.30 is sending illegal LBAs
> > to the IDE driver, which responds by hanging the box:
> I misread this backtrace:
> _this_ is the lba. 160086527. It is the very last sector on the disk.

Did not it issued an error on the console before that? Something
like 'hda: xxxx: status=YY' ? If it did, just open
drivers/ide/ide.c in your favorite editor, locate function ata_error,
in this function locate 'if (rq->errors >= ERROR_MAX)' and replace
it with 'if (1)'...

Problem is that current IDE code does not start retry, although it
thinks that it started it - so code waits for something to happen,
without timer set up, and without xxx->handler set to anything, so
even if something will happen (spurious interrupt), it will not awake.

Changing condition to '1' will force IDE driver to fail operation
immediately, and so channel will not deadlock (put it in another
way: any time current ata_error returns ATA_OP_CONTINUES, you just
lost your IDE channel with kernels >= 2.5.27 (at least)).
Petr Vandrovec

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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