[PATCH 02/13] qla2xxx: Set IIDMA and fcport state before qla_nvme_register_remote()

Hannes Reinecke hare at suse.de
Wed Mar 14 04:13:24 PDT 2018


On 03/12/2018 07:16 PM, Himanshu Madhani wrote:
> From: Darren Trapp <darren.trapp at cavium.com>
> 
> Signed-off-by: Darren Trapp <darren.trapp at cavium.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani at cavium.com>
> ---
>  drivers/scsi/qla2xxx/qla_init.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
> index cb182b102bfd..6caccc52376a 100644
> --- a/drivers/scsi/qla2xxx/qla_init.c
> +++ b/drivers/scsi/qla2xxx/qla_init.c
> @@ -5110,13 +5110,14 @@ qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport)
>  	fcport->deleted = 0;
>  	fcport->logout_on_delete = 1;
>  
> +	qla2x00_set_fcport_state(fcport, FCS_ONLINE);
> +	qla2x00_iidma_fcport(vha, fcport);
> +
>  	if (fcport->fc4f_nvme) {
>  		qla_nvme_register_remote(vha, fcport);
>  		return;
>  	}
>  
> -	qla2x00_set_fcport_state(fcport, FCS_ONLINE);
> -	qla2x00_iidma_fcport(vha, fcport);
>  	qla24xx_update_fcport_fcp_prio(vha, fcport);
>  
>  reg_port:
> 
Reviewed-by: Hannes Reinecke <hare at suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare at suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)



More information about the Linux-nvme mailing list