linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: sagi@grimberg.me (Sagi Grimberg)
Subject: [RFC PATCH] nvme of: don't flush scan work inside reset context
Date: Tue, 6 Nov 2018 19:26:28 -0800	[thread overview]
Message-ID: <97aae455-fa74-b1aa-21f6-80c03732a573@grimberg.me> (raw)
In-Reply-To: <20181105115734.15515-1-ming.lei@redhat.com>

Ming,

> When scan work is in-progress, any controller error may trigger
> reset, now fc, rdma and loop host tries to flush scan work
> inside reset context.
> 
> This way can cause deadlock easily because any IO during controler
> recovery(reset) can't be completed until the recovery is done.

Did you encounter this deadlock? or is it theoretical?

The point of nvme_stop_ctrl is to quiesce everything before
moving forward with tearing down the controller instead of
trying to handle concurrent incoming I/O.

I'm not sure I understand why you say that I/O can only be
completed when the reset is done? if the transport entered
a failed state either the inflight I/O is drain or one of
the scan work I/O operations times out.

  parent reply	other threads:[~2018-11-07  3:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 11:57 [RFC PATCH] nvme of: don't flush scan work inside reset context Ming Lei
2018-11-05 16:28 ` Keith Busch
2018-11-06  0:30   ` Ming Lei
2018-11-05 20:04 ` James Smart
2018-11-06  1:18   ` Ming Lei
2018-11-06  5:45     ` James Smart
2018-11-07  1:58       ` Ming Lei
2018-11-08  0:19       ` Sagi Grimberg
2018-11-08 17:49         ` James Smart
2018-11-07  3:26 ` Sagi Grimberg [this message]
2018-11-07  3:51   ` Ming Lei
2018-11-07  4:38     ` Sagi Grimberg
2018-11-07  8:34       ` Ming Lei
2018-11-07 18:38         ` Sagi Grimberg
2018-11-07 19:27           ` James Smart
2018-11-08  0:05           ` Ming Lei

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=97aae455-fa74-b1aa-21f6-80c03732a573@grimberg.me \
    --to=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;
as well as URLs for NNTP newsgroup(s).