From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH] NVMe: Split shutdown work
Date: Tue, 24 Nov 2015 16:13:02 +0000 [thread overview]
Message-ID: <20151124161302.GA5193@localhost.localdomain> (raw)
In-Reply-To: <20151124153107.GA4326@infradead.org>
On Tue, Nov 24, 2015@07:31:07AM -0800, Christoph Hellwig wrote:
> On Tue, Nov 24, 2015@03:14:06PM +0000, Keith Busch wrote:
> > Security locked drives may reject "set feature". Some of my drives in
> > manufacturing mode also fail it.
>
> Is there any wording in the spec that allows this? What number of
> I/O queues will show up on these drives? Allowing to ignore this
> failure is defintively black magic and needs long comments explaining
> the why and how, or it will get broken accidentally again and again.
Heh, my reasoning is focused a bit too narrowly. :)
Instead of examining a specific command's failure modes, can we agree
there is a difference in how we should handle a controller that responds
to initialization with failure status vs one that doesn't respond
at all? I don't want to rat hole commentary for an exceedingly rare
scenario, but it helps tremendously to have this distinction if it
happens.
> We need serialization not just of shutdown calls, but also of shutdown
> vs reset. Thinking about it aren't we doing the shutdown from the
> pci_driver ->removal callback with my current branch?
There's actually lots of entry points to shutdown: system suspend,
shutdown, PCI-e Function Level Reset, NVMe Controller Level Reset, NVMe
Subsystem Reset Occurred/Controller Failure Status, and PCI removal. PCI
removal can happen from PCI-e hotplug event, driver requested, or user
requested.
I've never seen these events occur simultaneously in practice. There's
no handling for it, but we can fix it utilizing the new device flags.
next prev parent reply other threads:[~2015-11-24 16:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 18:17 [PATCH] NVMe: Split shutdown work Keith Busch
2015-11-24 7:34 ` Christoph Hellwig
2015-11-24 15:14 ` Keith Busch
2015-11-24 15:31 ` Christoph Hellwig
2015-11-24 16:13 ` Keith Busch [this message]
2015-11-24 17:58 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2015-11-23 19:59 Christoph Hellwig
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=20151124161302.GA5193@localhost.localdomain \
--to=keith.busch@intel.com \
/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