From: Mike Anderson <andmike@us.ibm.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Calling sd_shutdown when in state SDEV_DEL
Date: Wed, 24 Mar 2004 17:48:59 -0800 [thread overview]
Message-ID: <20040325014859.GA3040@beaverton.ibm.com> (raw)
In-Reply-To: <1080158975.1783.26.camel@mulgrave>
James Bottomley [James.Bottomley@SteelEye.com] wrote:
> On Wed, 2004-03-24 at 12:04, Mike Anderson wrote:
> > Why setting CANCEL on the device? Future plans for the CANCEL state?
> > You are setting the state to cancel, but not going through
> > scsi_device_cancel as you want IO to still flow.
>
> Mainly because it was there. Using CANCEL instead of DEL is appealing
> since it will still allow special I/O. Would there be an issue with
> refusing new device references in the CANCEL state?
I think this should be ok as this is our (scsi core) own internal
solution to keep ref counts from increasing for the purpose of
eventually allowing everything to cleanup.
>
> > While this will solve the problem for removing a single device, this
> > same error will show up when you remove a host unless you remove all
> > devices first through the sysfs interface. Is this ok?
>
> Sigh, that's a symptom of the host not having a state model ... I need
> to think about adding that.
Well this is my mess. We really have two usages models here but only one
scsi_remove_host interface. One usage calls scsi_remove_host when the
transport is dead and does not want anymore IO to flow through
queuecommand. The other usage calls during a clean removal (i.e., rmmod
or hotplug) while there are still scsi_device children of the host
adapter as this is easier than deleting the children first.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2004-03-25 1:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 15:03 Calling sd_shutdown when in state SDEV_DEL Heiko Carstens
2004-03-24 15:35 ` James Bottomley
2004-03-24 16:28 ` Heiko Carstens
2004-03-24 17:04 ` Mike Anderson
2004-03-24 20:09 ` James Bottomley
2004-03-25 1:48 ` Mike Anderson [this message]
2004-04-02 23:33 ` James Bottomley
2004-03-24 16: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=20040325014859.GA3040@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=James.Bottomley@SteelEye.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-scsi@vger.kernel.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