Skip to content

Commit 387c26b

Browse files
Shreyas Deodhargregkh
authored andcommitted
scsi: qla2xxx: Allow recovery for tape devices
commit b0335ee upstream. Tape device doesn't show up after RSCNs. To fix this, remove tape device specific checks which allows recovery of tape devices. Fixes: 44c57f2 ("scsi: qla2xxx: Changes to support FCP2 Target") Cc: stable@vger.kernel.org Signed-off-by: Shreyas Deodhar <sdeodhar@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Reviewed-by: Himanshu Madhani <hmadhani2024@gmail.com> Link: https://patch.msgid.link/20251210101604.431868-7-njavali@marvell.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 40ae936 commit 387c26b

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/scsi/qla2xxx/qla_gs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3356,9 +3356,6 @@ void qla_fab_scan_finish(scsi_qla_host_t *vha, srb_t *sp)
33563356
atomic_read(&fcport->state) == FCS_ONLINE) ||
33573357
do_delete) {
33583358
if (fcport->loop_id != FC_NO_LOOP_ID) {
3359-
if (fcport->flags & FCF_FCP2_DEVICE)
3360-
continue;
3361-
33623359
ql_log(ql_log_warn, vha, 0x20f0,
33633360
"%s %d %8phC post del sess\n",
33643361
__func__, __LINE__,

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,15 +1859,6 @@ void qla2x00_handle_rscn(scsi_qla_host_t *vha, struct event_arg *ea)
18591859
case RSCN_PORT_ADDR:
18601860
fcport = qla2x00_find_fcport_by_nportid(vha, &ea->id, 1);
18611861
if (fcport) {
1862-
if (ql2xfc2target &&
1863-
fcport->flags & FCF_FCP2_DEVICE &&
1864-
atomic_read(&fcport->state) == FCS_ONLINE) {
1865-
ql_dbg(ql_dbg_disc, vha, 0x2115,
1866-
"Delaying session delete for FCP2 portid=%06x %8phC ",
1867-
fcport->d_id.b24, fcport->port_name);
1868-
return;
1869-
}
1870-
18711862
if (vha->hw->flags.edif_enabled && DBELL_ACTIVE(vha)) {
18721863
/*
18731864
* On ipsec start by remote port, Target port

0 commit comments

Comments
 (0)