From: Mike Anderson <andmike@us.ibm.com>
To: Oliver Neukum <oliver@neukum.name>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH / RFC] scsi_set_host_offline
Date: Tue, 4 Mar 2003 14:29:07 -0800 [thread overview]
Message-ID: <20030304222907.GA1252@beaverton.ibm.com> (raw)
In-Reply-To: <20030304123605.D6452@one-eyed-alien.net>
Matthew Dharm [mdharm-scsi@one-eyed-alien.net] wrote:
> On Tue, Mar 04, 2003 at 01:03:18AM +0100, Oliver Neukum wrote:
> > Don't we need to disallow further devices being discovered on this
> > host's busses before we set the existing devices offline?
>
> Hrm... yes, I think this could be a problem.
>
> For 99% of USB storage devices, it's not. One device == one host with one
> target. However, for the other 1% of devices (and all 'real' SCSI hosts),
> this could be an issue. I could be trying to yank the device (hot-unplug)
> at the same moment someone is doing an add-single-device.
>
While the calling of scsi_set_host_offline may mean no more additions
for a set of hosts it may be not be the case for the whole set.
A host offline value may be a good thing to add. The policy around the
state maybe hard to generalize.
If a LLDD decided that it did not want any more devices added it can
today fail calls to queuecommand or slave_alloc (which some already do).
The LLDD may need to handle these in the future depending on what
functions scsi_set_host_offline maybe racing with.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2003-03-04 22:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-03 22:15 [PATCH / RFC] scsi_set_host_offline Mike Anderson
2003-03-04 0:03 ` Oliver Neukum
2003-03-04 20:36 ` Matthew Dharm
2003-03-04 20:57 ` Oliver Neukum
2003-03-04 22:29 ` Mike Anderson [this message]
2003-03-04 23:12 ` Oliver Neukum
2003-03-05 16:52 ` James Bottomley
2003-03-05 19:49 ` Oliver Neukum
2003-03-05 22:35 ` Mike Anderson
2003-03-06 14:33 ` Oliver Neukum
2003-03-04 0:08 ` Patrick Mansfield
2003-03-22 21:24 ` Matthew Dharm
2003-03-25 9:46 ` Mike Anderson
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=20030304222907.GA1252@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=oliver@neukum.name \
/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