From: Quinn Tran Date: Fri, 31 Aug 2018 18:24:34 +0000 (-0700) Subject: scsi: qla2xxx: Force fw cleanup on ADISC error X-Git-Tag: v5.4-rc1~2267^2~233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d3fdbebd2df2d55df1e1337790c35f8298295aa;p=platform%2Fkernel%2Flinux-rpi.git scsi: qla2xxx: Force fw cleanup on ADISC error Turn ON logout_on_delete flag to make sure firmware resource for fcport is cleaned up on ADISC error. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 0f069eb..f8f5518 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -396,6 +396,9 @@ void qla24xx_handle_adisc_event(scsi_qla_host_t *vha, struct event_arg *ea) ql_dbg(ql_dbg_disc, vha, 0x2066, "%s %8phC: adisc fail: post delete\n", __func__, ea->fcport->port_name); + /* deleted = 0 & logout_on_delete = force fw cleanup */ + fcport->deleted = 0; + fcport->logout_on_delete = 1; qlt_schedule_sess_for_deletion(ea->fcport); return; }