From: Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
To: Daniel Wagner <dwagner@suse.de>
Cc: Hannes Reinecke <hare@suse.de>,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvmet-fcloop: fail LS request synchronously when remote port is gone
Date: Mon, 21 Sep 2026 21:59:02 +0700 [thread overview]
Message-ID: <20260921145902.17223-1-ngocthang2710.1999@gmail.com> (raw)
In-Reply-To: <2ad8b13c-b548-4574-9c61-5224833e1bad@flourine.local>
Hi Daniel,
Thanks for the review, you are right: the async -ECONNREFUSED completion
is how an HBA would behave, so failing synchronously in fcloop changes
that.
I dropped the fcloop change. v2 keeps fcloop as is and flushes nvmet_wq a
second time in nvmet_fc_unregister_targetport(), so the LS completion
queued by nvmet_fc_delete_assoc_work() during the first flush has run
before nvmet_fc_free_pending_reqs() frees the remaining requests:
[PATCH v2] nvmet-fc: flush nvmet_wq twice on targetport unregister
Message-ID: <20260921145651.17131-1-ngocthang2710.1999@gmail.com>
Hannes' blktest request is covered by nvme/071, sent separately to
linux-block. It fails with a UAF on an unpatched kernel and passes with v2.
Thanks,
Thang
next prev parent reply other threads:[~2026-09-21 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 16:38 Nguyen Ngoc Thang
2026-09-21 9:00 ` Hannes Reinecke
2026-09-21 11:28 ` Daniel Wagner
2026-09-21 14:59 ` Nguyen Ngoc Thang [this message]
2026-09-21 14:56 ` [PATCH v2] nvmet-fc: flush nvmet_wq twice on targetport unregister Nguyen Ngoc Thang
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=20260921145902.17223-1-ngocthang2710.1999@gmail.com \
--to=ngocthang2710.1999@gmail.com \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.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
all inboxes | Powered by JetHome®