From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH 2/3] NVMe: Don't use fake status on cancelled command
Date: Thu, 11 Jun 2015 14:15:31 +0000 (UTC) [thread overview]
Message-ID: <alpine.LNX.2.00.1506111410500.15930@localhost.lm.intel.com> (raw)
In-Reply-To: <20150611104033.GA21107@infradead.org>
On Thu, 11 Jun 2015, Christoph Hellwig wrote:
> On Mon, Jun 08, 2015@10:08:14AM -0600, Keith Busch wrote:
>> Synchronized commands do different things for timed out commands
>> vs. controller returned errors.
>
> Can you explain this a bit more? Can't find anything that checks for
> the error value. Let's hope the EINTR never leaks to userspace either
> as it has a well defined and very different meaning there.
Yep, the first command issued is set features for number of queues. If
this returns a valid non-successful NVMe status, the driver believes
the controller is operational and can be managed, although no IO. If it
returns a status < 0, the controller is believed to be non-operational
and initialization will fail.
I used -EINTR to restore what used to be returned from the driver's
original implementation, but it doesn't have to be this error.
next prev parent reply other threads:[~2015-06-11 14:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 16:08 [PATCH 0/3] NVMe: Initialization error handling fixups Keith Busch
2015-06-08 16:08 ` [PATCH 1/3] NVMe: Fix device cleanup on initialization failure Keith Busch
2015-06-08 16:08 ` [PATCH 2/3] NVMe: Don't use fake status on cancelled command Keith Busch
2015-06-11 10:40 ` Christoph Hellwig
2015-06-11 14:15 ` Keith Busch [this message]
2015-06-11 15:23 ` Christoph Hellwig
[not found] ` <55935989.70809@huawei.com>
2015-07-01 16:17 ` Question about NVMe share I/O Keith Busch
2015-07-01 16:45 ` James R. Bergsten
2015-07-02 7:11 ` dingxiang
2015-07-02 12:42 ` Yijing Wang
2015-07-02 14:42 ` Keith Busch
2015-07-03 1:24 ` Yijing Wang
2015-07-08 8:49 ` dingxiang
2015-06-08 16:08 ` [PATCH 3/3] NVMe: Unify controller probe and resume 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=alpine.LNX.2.00.1506111410500.15930@localhost.lm.intel.com \
--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.