Re: kernel BUG at drivers/ide/ide-disk.c:187 (2.6.31)

David Miller
2009-10-01T16:40:21Z

From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date: Thu, 1 Oct 2009 11:25:40 +0200

> The problem is that you simply cannot know what is the system state here.
>
> Thus when the unknown block layer request is encountered the best thing
> you can do is to BUG early instead of allowing the situation when some
> requests are silently dropped and possibly causing the data corruption.

Yes, but if you BUG() in this kind of location, the chance of getting
the debugging information from the user can be close to zero. We were
very lucky this time :-)

If we're tossing a request, signal an error to the submitter.

I hear we have infrastructure for that :-)