axboe@suse.de said:
> I wouldn't mind unifying lots of the atapi and cdrom stuff. Most of
> the stuff I took care off was atapi and scsi cdrom unification, but it
> could be taken a step further.
Yes, perhaps in conjunction with a rationalisation of command packet interface
to struct request and the block queue that made no prejudgement of what
actually the command was packetised for. One modification I was thinking of
would be simply to make struct_request.cmd a pointer rather than a char array.
That way, the prep functions can allocate it and fill it in with an arbitrary
packet command to be interpreted by the downstream driver (it will also get us
out of the command size limitation problem---of course, the SCSI committee
would never consider another command size increase...)
> Come to think of it, the reason why I didn't completey unify SCSI
> request sense (eg) with cdrom stuff was that you quickly run into all
> sorts of ugliness with the various scsi versions, atapi version,
> reserved fields, added fields, etc. Something that looks good and
> should be good, suddenly breaks cdrom model XYZ that used to work
> (perhaps by chance) and still _ought_ to work.
In fact, it would be a particularly deep and rancid can of worms?
> But hey, knock yourself out :-)
Sure, by the time you've got a rational and unified interface that looks good,
you'll probably have re-written big chunks of scsi and cdrom. However, if you
can come up with a good scheme for the sense codes, it would be nice (the ASC
ASCQ code combinations are in a table that covers thirteen pages of close
printed type in the SCSI spec---constants.c only has the more frequently used
ones).
James
-
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/
This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:32 EST