From: sashiko-bot@kernel.org
To: "Tyrel Datwyler" <tyreld@linux.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 18/20] scsi: ibmvfc: fix NVMe sub-queue registration failure disabling SCSI multiqueue
Date: Wed, 16 Sep 2026 23:39:09 +0000 [thread overview]
Message-ID: <20260916233909.BC38F1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260916230921.2204729-19-tyreld@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] ibmvfc: permanent loss of NVMe MQ after transient registration failure
--
commit 3196ff84a81b6364f0d8e7add637cd7dce662d03
Author: Tyrel Datwyler <tyreld@linux.ibm.com>
scsi: ibmvfc: fix NVMe sub-queue registration failure disabling SCSI multiqueue
This commit modifies ibmvfc_reg_sub_crqs() to check the channel protocol
during registration failure. It clears vhost->do_enquiry for SCSI failures
and vhost->nvme_enabled for NVMe failures, preventing NVMe registration
failures from silently disabling SCSI multiqueue support.
> diff --git a/drivers/scsi/ibmvscsi/ibmvfc-core.c b/drivers/scsi/ibmvscsi/ibmvfc-core.c
> index 93189692191e3..d79a6ae278a2c 100644
> --- a/drivers/scsi/ibmvscsi/ibmvfc-core.c
> +++ b/drivers/scsi/ibmvscsi/ibmvfc-core.c
> @@ -6527,7 +6527,10 @@ static void ibmvfc_reg_sub_crqs(struct ibmvfc_host *vhost,
> if (ibmvfc_register_channel(vhost, channels, i)) {
> for (j = i; j > 0; j--)
> ibmvfc_deregister_channel(vhost, channels, j - 1);
> - vhost->do_enquiry = 0;
> + if (channels->protocol == IBMVFC_PROTO_SCSI)
> + vhost->do_enquiry = 0;
> + else
> + vhost->nvme_enabled = 0;
[Severity: High]
Does this permanently disable NVMe multiqueue support if an NVMe sub-queue
registration failure is transient?
When an NVMe registration fails, vhost->nvme_enabled is now set to 0.
The host will eventually reset and retry registration, for example via
ibmvfc_reset_crq() or ibmvfc_reenable_crq_queue().
Unlike vhost->do_enquiry which is explicitly restored to 1 during reset:
ibmvfc_reset_crq() {
...
vhost->do_enquiry = 1;
vhost->using_channels = 0;
vhost->do_scsi_login = 0;
vhost->do_nvme_login = 0;
...
}
vhost->nvme_enabled is never restored.
If the subsequent registration retry succeeds, the NVMe channels are
successfully registered with the hypervisor, but nvme_enabled remains 0.
Could this prevent the driver from advertising IBMVFC_YES_NVMEOF during
NPIV login, leaving the newly registered channels permanently unused by the
VIOS and breaking the multiqueue recovery mechanism?
> return;
> }
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260916230921.2204729-1-tyreld@linux.ibm.com?part=18
next prev parent reply other threads:[~2026-09-16 23:39 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 23:09 [PATCH 00/20] scsi: ibmvfc: Fixes and cleanup for NVMe/FC support Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 01/20] scsi: ibmvfc: initialize evt->tgt for NVMe FCP commands Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 02/20] scsi: ibmvfc: fix trace logging " Tyrel Datwyler
2026-09-16 23:21 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 03/20] scsi: ibmvfc: complete NVMe FCP requests on H_CLOSED send failure Tyrel Datwyler
2026-09-16 23:24 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 04/20] scsi: ibmvfc: defer NVMe local port registration out of atomic context Tyrel Datwyler
2026-09-16 23:27 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 05/20] scsi: ibmvfc: fix uninitialized _done dereference for TMF events on send failure Tyrel Datwyler
2026-09-16 23:33 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 06/20] scsi: ibmvfc: fix uninitialized shwqs in ibmvfc_purge_requests() Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 07/20] scsi: ibmvfc: fix uninitialized status logged on LS abort send failure Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 08/20] scsi: ibmvfc: fix inverted suppress-ABTS capability check in NVMe TMF path Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 09/20] scsi: ibmvfc: fix infinite reset loop on NULL evt in implicit logout path Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 10/20] scsi: ibmvfc: fix u16 overflow of max_cmds in ibmvfc_set_login_info() Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 11/20] scsi: ibmvfc: fix UAF and hang in ibmvfc_cancel_all_mq() on send failure Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 12/20] scsi: ibmvfc: fix data race on tgt->nvme_remote_port Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 13/20] scsi: ibmvfc: make NVMe FCP abort callback asynchronous Tyrel Datwyler
2026-09-16 23:27 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 14/20] scsi: ibmvfc: fix UAF and stall in NVMe LS abort callback Tyrel Datwyler
2026-09-16 23:33 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 15/20] scsi: ibmvfc: unregister NVMe local port on adapter removal Tyrel Datwyler
2026-09-16 23:39 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 16/20] scsi: ibmvfc: fix NVMe local port leak on fabric link bounce Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 17/20] scsi: ibmvfc: fix TOCTOU race in ibmvfc_nvme_create_queue() on adapter removal Tyrel Datwyler
2026-09-16 23:09 ` [PATCH 18/20] scsi: ibmvfc: fix NVMe sub-queue registration failure disabling SCSI multiqueue Tyrel Datwyler
2026-09-16 23:39 ` sashiko-bot [this message]
2026-09-16 23:09 ` [PATCH 19/20] scsi: ibmvfc: fix concurrent SCSI and NVMe discover-targets race dropping targets Tyrel Datwyler
2026-09-16 23:41 ` sashiko-bot
2026-09-16 23:09 ` [PATCH 20/20] scsi: ibmvfc: fix nr_nvme_hw_queues module parameter ignored for NVMe queue sizing Tyrel Datwyler
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=20260916233909.BC38F1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tyreld@linux.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.