From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH] nvme: allow queues the chance to quiesce after freezing them
Date: Thu, 19 Nov 2015 22:20:12 +0000 [thread overview]
Message-ID: <20151119222012.GB22690@localhost.localdomain> (raw)
In-Reply-To: <20151119215311.GA19302@infradead.org>
On Thu, Nov 19, 2015@01:53:11PM -0800, Christoph Hellwig wrote:
> This looks reasonable. I ran into stray ->q_db derference a lot during
> reset testing, but after my abort and reset rewrites ([1] for th latest
> version) I couldn't reproduce it any more.
>
> [1]
> http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/nvme-req.8
There's good stuff in this tree. I've been using it most of this week
to study the reset handling and still have a concern here.
I mentioned ending IO in the reset handler in a previous review, and I can
create memory and data corruption with well timed delays (or badly timed,
depending on your perspective). We can't end IO while the controller
owns it. Even though the timeout handler often means the controller is
not going to return the command anyway, ending it releases memory the
controller may still access.
I don't see how we can disable the controller to forcefully end commands
with merged probe and reset work, and thinking these need to be kept
separate. Timeouts are done in a workqueue now, so can we do controller
shutdown inline with the timeout handler?
next prev parent reply other threads:[~2015-11-19 22:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 19:11 [PATCH] nvme: allow queues the chance to quiesce after freezing them Jon Derrick
2015-11-19 20:53 ` Jon Derrick
2015-11-19 21:41 ` Keith Busch
2015-11-19 21:53 ` Christoph Hellwig
2015-11-19 22:20 ` Keith Busch [this message]
2015-11-19 22:24 ` Christoph Hellwig
2015-11-19 22:12 ` Jon Derrick
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=20151119222012.GB22690@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.