From: hch@infradead.org (Christoph Hellwig)
Subject: [PATCH] nvme: Add error checking in nvme_create_io_queues
Date: Mon, 28 Sep 2015 07:23:17 -0700 [thread overview]
Message-ID: <20150928142317.GA29320@infradead.org> (raw)
In-Reply-To: <alpine.LNX.2.00.1509281345370.23840@localhost.lm.intel.com>
On Mon, Sep 28, 2015@01:50:23PM +0000, Keith Busch wrote:
> On Sat, 26 Sep 2015, Christoph Hellwig wrote:
> >Keith, do you remember why nvme_remove_disks is called through a
> >workqueue? I'd much rather do the work in line and in the proper place,
> >queues should never leave nvme_create_io_queues half-setup, and
> >namespaces should probably be removed by nvme_dev_start if we don't
> >have any working I/O queues after a resume or reset.
>
> A resume from S3/S4 will deadlock if we try to delete inaccessible
> disks from the resume context, so using the work queue instead. There
> is probably a better way to do this now that we probe asynchronously,
> we can resume the same way.
Is this still the case with the nvme_io_incapable check in place? What
are the symptoms? Unfortunately I can't test PM easily on my test
systems with NVMe cards as they are all remotely managed server class
systems.
Anyway, I have some pending patches for restructuring the reset path
in the NVMe driver and I will keep this in mind, but careful testing
by someone who has PM capable hardware would be really appreciated.
next prev parent reply other threads:[~2015-09-28 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 18:20 [PATCH] nvme: Add error checking in nvme_create_io_queues Jon Derrick
2015-09-24 19:23 ` Keith Busch
2015-09-24 19:41 ` Jon Derrick
2015-09-27 6:39 ` Christoph Hellwig
2015-09-28 13:50 ` Keith Busch
2015-09-28 14:23 ` Christoph Hellwig [this message]
2015-09-28 14:35 ` Keith Busch
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=20150928142317.GA29320@infradead.org \
--to=hch@infradead.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