From: John Meneghini <jmeneghi@redhat.com>
To: Karan Tilak Kumar <kartilak@cisco.com>, sebaddel@cisco.com
Cc: arulponn@cisco.com, djhawar@cisco.com, gcboffa@cisco.com,
mkai2@cisco.com, satishkh@cisco.com, aeasi@cisco.com,
jejb@linux.ibm.com, martin.petersen@oracle.com,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
revers@redhat.com, dan.carpenter@linaro.org,
stable@vger.kernel.org
Subject: Re: [PATCH v6 2/4] scsi: fnic: Turn off FDMI ACTIVE flags on link down
Date: Wed, 18 Jun 2025 13:21:13 -0400 [thread overview]
Message-ID: <2dfb3baf-00c9-456a-9411-330b2fd7cba4@redhat.com> (raw)
In-Reply-To: <20250618003431.6314-2-kartilak@cisco.com>
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
On 6/17/25 8:34 PM, Karan Tilak Kumar wrote:
> When the link goes down and comes up, FDMI requests are not sent out
> anymore.
> Fix bug by turning off FNIC_FDMI_ACTIVE when the link goes down.
>
> Fixes: 09c1e6ab4ab2 ("scsi: fnic: Add and integrate support for FDMI")
> Reviewed-by: Sesidhar Baddela <sebaddel@cisco.com>
> Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
> Reviewed-by: Gian Carlo Boffa <gcboffa@cisco.com>
> Reviewed-by: Arun Easi <aeasi@cisco.com>
> Tested-by: Karan Tilak Kumar <kartilak@cisco.com>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com>
> ---
> Changes between v5 and v6:
> - Incorporate review comments from John:
> - Rebase patches on 6.17/scsi-queue
>
> Changes between v4 and v5:
> - Incorporate review comments from John:
> - Refactor patches
> - Increment driver version number
>
> Changes between v3 and v4:
> - Incorporate review comments from Dan:
> - Remove comments from Cc tag
>
> Changes between v2 and v3:
> - Incorporate review comments from Dan:
> - Add Cc to stable
>
> Changes between v1 and v2:
> - Incorporate review comments from Dan:
> - Add Fixes tag
> ---
> drivers/scsi/fnic/fdls_disc.c | 9 ++++++---
> drivers/scsi/fnic/fnic.h | 2 +-
> 2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/fnic/fdls_disc.c b/drivers/scsi/fnic/fdls_disc.c
> index 36b498ad55b4..fa9cf0b37d72 100644
> --- a/drivers/scsi/fnic/fdls_disc.c
> +++ b/drivers/scsi/fnic/fdls_disc.c
> @@ -5029,9 +5029,12 @@ void fnic_fdls_link_down(struct fnic_iport_s *iport)
> fdls_delete_tport(iport, tport);
> }
>
> - if ((fnic_fdmi_support == 1) && (iport->fabric.fdmi_pending > 0)) {
> - timer_delete_sync(&iport->fabric.fdmi_timer);
> - iport->fabric.fdmi_pending = 0;
> + if (fnic_fdmi_support == 1) {
> + if (iport->fabric.fdmi_pending > 0) {
> + timer_delete_sync(&iport->fabric.fdmi_timer);
> + iport->fabric.fdmi_pending = 0;
> + }
> + iport->flags &= ~FNIC_FDMI_ACTIVE;
> }
>
> FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
> diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h
> index 86e293ce530d..c2fdc6553e62 100644
> --- a/drivers/scsi/fnic/fnic.h
> +++ b/drivers/scsi/fnic/fnic.h
> @@ -30,7 +30,7 @@
>
> #define DRV_NAME "fnic"
> #define DRV_DESCRIPTION "Cisco FCoE HBA Driver"
> -#define DRV_VERSION "1.8.0.1"
> +#define DRV_VERSION "1.8.0.2"
> #define PFX DRV_NAME ": "
> #define DFX DRV_NAME "%d: "
>
next prev parent reply other threads:[~2025-06-18 17:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 0:34 [PATCH v6 1/4] scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out Karan Tilak Kumar
2025-06-18 0:34 ` [PATCH v6 2/4] scsi: fnic: Turn off FDMI ACTIVE flags on link down Karan Tilak Kumar
2025-06-18 17:21 ` John Meneghini [this message]
2025-06-18 0:34 ` [PATCH v6 3/4] scsi: fnic: Add and improve logs in FDMI and FDMI ABTS paths Karan Tilak Kumar
2025-06-18 0:34 ` [PATCH v6 4/4] scsi: fnic: Set appropriate logging level for log message Karan Tilak Kumar
2025-06-18 17:21 ` John Meneghini
2025-06-18 17:17 ` [PATCH v6 1/4] scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out John Meneghini
2025-06-19 1:44 ` Karan Tilak Kumar (kartilak)
2025-06-20 3:19 ` Martin K. Petersen
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=2dfb3baf-00c9-456a-9411-330b2fd7cba4@redhat.com \
--to=jmeneghi@redhat.com \
--cc=aeasi@cisco.com \
--cc=arulponn@cisco.com \
--cc=dan.carpenter@linaro.org \
--cc=djhawar@cisco.com \
--cc=gcboffa@cisco.com \
--cc=jejb@linux.ibm.com \
--cc=kartilak@cisco.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mkai2@cisco.com \
--cc=revers@redhat.com \
--cc=satishkh@cisco.com \
--cc=sebaddel@cisco.com \
--cc=stable@vger.kernel.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®