public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Jens Axboe <axboe@suse.de>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>,
	James Bottomley <James.Bottomley@SteelEye.com>,
	Marcelo Tosatti <marcelo@conectiva.com.br>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cdrom sane fallback vs 2.4.20-pre1
Date: Tue, 13 Aug 2002 12:10:50 -0500	[thread overview]
Message-ID: <200208131710.g7DHAof03116@localhost.localdomain> (raw)
In-Reply-To: Message from Jens Axboe <axboe@suse.de>  of "Tue, 13 Aug 2002 18:37:21 +0200." <20020813163721.GD32470@suse.de>

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



  reply	other threads:[~2002-08-13 17:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-13 14:13 [PATCH] cdrom sane fallback vs 2.4.20-pre1 James Bottomley
2002-08-13 15:48 ` Randy.Dunlap
2002-08-13 16:14   ` Jens Axboe
2002-08-13 16:21   ` James Bottomley
2002-08-13 16:25     ` Randy.Dunlap
2002-08-13 16:37       ` Jens Axboe
2002-08-13 17:10         ` James Bottomley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-11 21:59 Erik Andersen
2002-08-13  2:58 ` Marcelo Tosatti
2002-08-13  4:12   ` Erik Andersen
2002-08-16  3:12     ` Oliver Xymoron
2002-08-13  8:42   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200208131710.g7DHAof03116@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=rddunlap@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox