From: Damien Le Moal <dlemoal@kernel.org>
To: Hannes Reinecke <hare@suse.de>,
lsf-pc <lsf-pc@lists.linux-foundation.org>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
Subject: Re: [LSF/MM?BFP TOPIC] Block-layer device resets
Date: Mon, 2 Feb 2026 10:46:18 +0900 [thread overview]
Message-ID: <7ec5f552-197f-48be-9898-9cc4233783fc@kernel.org> (raw)
In-Reply-To: <50ee77fa-0c44-422e-9ee2-eece60b189e1@suse.de>
On 2/2/26 02:06, Hannes Reinecke wrote:
> Hi all,
>
> We are currently working on implementing cross-controller resets for
> NVMe, which requires to send a command to the target which then should
> terminate all commands on a given controller.
> While we could easily terminate the controller, the specification
> also requires us to terminate all outstanding commands.
> Which then recurses into my all-time favourite topic on how to
> abort outstanding commands from the fs/bio layer.
>
> However, here we don't have to dissect/match to individual commands,
> but rather have to abort everything, which seems rather easier.s
>
> So I would like to fathom whether such a thing is feasible/reasonable
> (I think so, obviously, and can think of several other use-cases, too,
> qemu springs to mind here ...) and discuss possible implementations
> (set 'req->deadline' to zero for all pending commands?).
> Or maybe we can do such a thing already and I'm just not aware of it...
Hmmm... Command timeouts ? E.g. if a controller is slow to respond (send
completions), the block layer timeout timer may trigger, which will call into
the low level device driver to force a reset. But before the reset actually
happens, completions may actually come back, and we do handle that race
correctly, well at least for scsi/ata.
Your scenario sound very similar to this: once you reset the controller,
whatever was pending will be silent and can be aborted or retried. So it does
sound like that should not be too difficult, no ? Generalize the timeout
processing or do something similar ?
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-02-02 1:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-01 17:06 [LSF/MM?BFP TOPIC] Block-layer device resets Hannes Reinecke
2026-02-02 1:46 ` Damien Le Moal [this message]
2026-02-02 23:04 ` Hannes Reinecke
2026-02-03 12:19 ` Nilay Shroff
2026-02-04 1:43 ` Hannes Reinecke
2026-02-02 17:27 ` Bart Van Assche
2026-02-02 23:10 ` Hannes Reinecke
2026-02-03 3:14 ` Ming Lei
2026-02-03 5:51 ` [LSF/MM/BFP " Hannes Reinecke
2026-02-04 1:14 ` Ming Lei
2026-02-04 1:50 ` Hannes Reinecke
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=7ec5f552-197f-48be-9898-9cc4233783fc@kernel.org \
--to=dlemoal@kernel.org \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=lsf-pc@lists.linux-foundation.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