From: "jianchao.wang" <jianchao.w.wang@oracle.com>
To: Sagi Grimberg <sagi@grimberg.me>,
keith.busch@intel.com, axboe@fb.com, hch@lst.de
Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvme: check ctrl.tagset before start ns scan
Date: Thu, 4 Jan 2018 12:01:54 +0800 [thread overview]
Message-ID: <a5b2d8a9-5241-28a3-5f8d-6a9ba0e6ac7d@oracle.com> (raw)
In-Reply-To: <ef7f1b69-c042-60f7-6bd3-6dd4c4d73b90@grimberg.me>
Hi sagi
Many thanks for your kindly response.
On 01/03/2018 05:37 PM, Sagi Grimberg wrote:
> Hi Jianchao,
>
>> ctrl.tagset maybe NULL due to failure of io queue setup or blk-mq
>> tagset allocation in nvme_reset_work. Then panic would come up.
>> To fix this, just add ctrl.tagset check in nvme_scan_work.
>
> This came up before (and forgotten...) I think we should not
> have state indicators other than ctrl->state.
>
> How about instead we add a new state NVME_CTRL_ADMIN_LIVE when we have
> no I/O queues.
>
Yes, that's a good idea that add a new state NMVE_CTRL_ADMIN_LIVE to indicate
only the admin queue live. On the other hand, add a sanity checking that whether
ctrl->tagset is NULL is also necessary. :)
Thanks
Jianchao
prev parent reply other threads:[~2018-01-04 4:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 18:07 Jianchao Wang
2018-01-03 9:37 ` Sagi Grimberg
2018-01-04 4:01 ` jianchao.wang [this message]
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=a5b2d8a9-5241-28a3-5f8d-6a9ba0e6ac7d@oracle.com \
--to=jianchao.w.wang@oracle.com \
--cc=axboe@fb.com \
--cc=hch@lst.de \
--cc=keith.busch@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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
all inboxes | Powered by JetHome®