From: m@bjorling.me (Matias Bjørling)
Subject: [PATCH v12] NVMe: Convert to blk-mq
Date: Thu, 21 Aug 2014 14:07:13 +0200 [thread overview]
Message-ID: <53F5E0F1.20808@bjorling.me> (raw)
In-Reply-To: <alpine.LRH.2.03.1408181643280.4696@AMR>
On 08/19/2014 12:49 AM, Keith Busch wrote:
> On Fri, 15 Aug 2014, Matias Bj?rling wrote:
>>
>> * NVMe queues are merged with the tags structure of blk-mq.
>>
>
> I see the driver's queue suspend logic is removed, but I didn't mean to
> imply it was safe to do so without replacing it with something else. I
> thought maybe we could use the blk_stop/start_queue() functions if I'm
> correctly understanding what they're for.
They're usually only used for the previous request model.
Please correct me if I'm wrong. The flow of suspend is as following
(roughly):
1. Freeze user threads
2. Perform sys_sync
3. Freeze freezable kernel threads
4. Freeze devices
5. ...
On nvme suspend, we process all outstanding request and cancels any
outstanding IOs, before going suspending.
From what I found, is it still possible for IOs to be submitted and
lost in the process?
>
> With what's in version 12, we could free an irq multiple times that
> doesn't even belong to the nvme queue anymore in certain error conditions.
>
> A couple other things I just noticed:
>
> * We lose the irq affinity hint after a suspend/resume or device reset
> because the driver's init_hctx() isn't called in these scenarios.
Ok, you're right.
>
> * After a reset, we are not guaranteed that we even have the same number
> of h/w queues. The driver frees ones beyond the device's capabilities,
> so blk-mq may have references to freed memory. The driver may also
> allocate more queues if it is capable, but blk-mq won't be able to take
> advantage of that.
Ok. Out of curiosity, why can the number of exposed nvme queues change
from the hw perspective on suspend/resume?
next prev parent reply other threads:[~2014-08-21 12:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-15 18:16 [PATCH v12] Convert NVMe driver to blk-mq Matias Bjørling
2014-08-15 18:16 ` [PATCH v12] NVMe: Convert " Matias Bjørling
2014-08-18 22:49 ` Keith Busch
2014-08-21 12:07 ` Matias Bjørling [this message]
2014-08-21 14:19 ` 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=53F5E0F1.20808@bjorling.me \
--to=m@bjorling.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