]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Notify FC transport of rport disappearance during PCI fcn reset
authorJustin Tee <justin.tee@broadcom.com>
Fri, 25 Apr 2025 19:48:00 +0000 (12:48 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Apr 2025 01:38:14 +0000 (21:38 -0400)
commit8808c36b48a66ff24032e56538ab2d8df3b09e20
treeb807b561ccaaab6e38bf2dce7c4b76d975a851a2
parent05ae6c9c7315d844fbc15afe393f5ba5e5771126
scsi: lpfc: Notify FC transport of rport disappearance during PCI fcn reset

A PCI function reset implies a temporary disappearance of a fc_rport.
So, call lpfc_scsi_dev_block(), which sets all mapped fc_rports into the
temporary FC_PORTSTATE_BLOCKED state.  Once PCI function reset completes
and link reinitialized, the fc_rport is rediscovered and
FC_PORTSTATE_BLOCKED state is removed.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20250425194806.3585-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c