public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <tluben@rogers.com>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Mike Anderson <andmike@us.ibm.com>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [PATCH] make the SCSI mid-layer obey the device online flag
Date: Sat, 07 Jun 2003 01:20:21 -0400	[thread overview]
Message-ID: <3EE17615.7050706@rogers.com> (raw)
In-Reply-To: <1054943015.1777.67.camel@mulgrave>

James Bottomley wrote:
> On Fri, 2003-06-06 at 19:27, Luben Tuikov wrote:
> 
>>*If* eh is to be done in SCSI Core you just cannot avoid it --
>>this is *the whole point* which James had in mind to allow
>>to send cmnds if !online. (see prev msgs on this thread)
> 
> 
> Actually, I didn't.  Error handling has its own separate entry into
> ->queuecommand() (scsi_send_eh_cmnd()), so it wouldn't be affected by my
> changes.
> 
> My purpose is quite simple: Any normal block actions (read/write from
> mounted fs, or CD burning via SG_IO) would be errored.  Any special
> commands (from ioctls, direct commands or stack generated) would not be
> affected.
> 
> i.e.
> 
> REQ_CMD	errors
> REQ_BLOCK_PC errors
> REQ_SPECIAL is allowed

So you're saying: online <--> all allowed,
!online <--> only REQ_SPECIAL allowed.

I doubt this will work.  (But we can try it - hey, what the heck!)

The reason is that it adds another layer of
implementation on the upper layers which is
non-existant.

ULDD *do NOT* have eh capabilities, which is where your
"ejecting the cartridge" and "unlocking the door"
commands fall (ULDD eh - non-existant in Linux).

BTW, above I was talking about user space eh of SCSI Devices,
or more appropriately upper layer device drivers (ULDD, sd, st, etc)
error handling -- i.e. of their own type of devices.
Now if this kind of eh is to be done/generated in SCSI Core
then you cannot avoid it.

(I wasn't talking of the *transport* eh.)

BTW, on another note, it is also my desire that SCSI Core should
not know anything about upper level device drivers, and has always
been.  I'd also like to see SCSI Core shrink, rather than get bigger.

-- 
Luben




  reply	other threads:[~2003-06-07  5:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-04 16:01 [PATCH] make the SCSI mid-layer obey the device online flag James Bottomley
2003-06-04 16:51 ` Mike Anderson
2003-06-04 19:14   ` James Bottomley
2003-06-05  0:34     ` Patrick Mansfield
2003-06-05 12:59       ` James Bottomley
2003-06-05 13:41       ` Alan Stern
2003-06-06  6:36     ` Christoph Hellwig
2003-06-06 15:19       ` James Bottomley
2003-06-06 15:51         ` Oliver Neukum
2003-06-06 16:02         ` Luben Tuikov
2003-06-06 15:28       ` Luben Tuikov
2003-06-06 15:39         ` James Bottomley
2003-06-06 15:52           ` Luben Tuikov
2003-06-06 16:04             ` James Bottomley
2003-06-06 20:51             ` Christoph Hellwig
2003-06-06 23:27               ` Luben Tuikov
2003-06-06 23:43                 ` James Bottomley
2003-06-07  5:20                   ` Luben Tuikov [this message]
2003-06-06 20:23         ` Mike Anderson
2003-06-06 20:52           ` Christoph Hellwig
2003-06-10  0:00           ` Mike Anderson
2003-06-06 20:49         ` Christoph Hellwig
2003-06-06 23:21           ` Luben Tuikov

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=3EE17615.7050706@rogers.com \
    --to=tluben@rogers.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=andmike@us.ibm.com \
    --cc=hch@infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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