[lkml]   [2007]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: regression: disk error loop (panic?) ide_do_rw_disk-bad:

On Tue, 17 Jul 2007, Bartlomiej Zolnierkiewicz wrote:
> ide-disk driver and type 2 (REQ_TYPE_BLOCK_PC) requests don't mix well
> Probably some dumb application is sending packet commands without
> checking the device type...

Ok, we should definitely try to just translate the things, and instead of
having user apps that have to know about the (generally not very
interesting) differences between IDE and SCSI command set, and when the
IDE driver gets a SCSI request (whether from the new generic SG layer or
obviously the older SCSI-ioctl layer) it should "just work".

So I object to that "dumb application" statement. It's the kernel that has
traditionally been dumb in not smoothing over the differences between
devices well enough.

We shouldn't _need_ to have applications care. They should be able to just
use regular SCSI commands, and if the device cannot handle a 10-byte read
command, the kernel should have translated that into a 6-byte one (for
example) rather than the application having to know about idiotic small
differences like that.

That said, I dunno how to fix this particular one, and the IDE driver is
singularly unhelpful in actually talking about *what* the command tried to

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: 2007-07-17 23:27    [W:0.082 / U:29.812 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site