Message ID | 20250611183033.4205-4-kartilak@cisco.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/5] scsi: fnic: Set appropriate logging level for log message | expand |
On Wed, Jun 11, 2025 at 11:30:32AM -0700, 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. > > 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> > Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com> > --- Fixes tag etc. regards, dan carpenter
On Wednesday, June 11, 2025 11:44 AM, Dan Carpenter <dan.carpenter@linaro.org> wrote: > > On Wed, Jun 11, 2025 at 11:30:32AM -0700, 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. > > > > 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> > > Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com> > > --- > > Fixes tag etc. > > regards, > dan carpenter > > Thanks for your comments, Dan. I've fixed them in V3 version of the patch. Regards, Karan
diff --git a/drivers/scsi/fnic/fdls_disc.c b/drivers/scsi/fnic/fdls_disc.c index 9e9939d41fa8..14691db4d5f9 100644 --- a/drivers/scsi/fnic/fdls_disc.c +++ b/drivers/scsi/fnic/fdls_disc.c @@ -5078,9 +5078,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,