All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qla2xxx: Remove non functional code
@ 2020-02-06 13:54 Daniel Wagner
  2020-02-06 15:22 ` Lee Duncan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Wagner @ 2020-02-06 13:54 UTC (permalink / raw)
  To: linux-scsi; +Cc: Daniel Wagner

Remove code which has no functional use anymore since
3c75ad1d87c7 ("scsi: qla2xxx: Remove defer flag to indicate immeadiate
port loss").

While at it remove also the stale function documentation.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
 drivers/scsi/qla2xxx/qla_os.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 79387ac8936f..27a5d0c7e246 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -3909,19 +3909,6 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
 	set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
 }
 
-/*
- * qla2x00_mark_all_devices_lost
- *	Updates fcport state when device goes offline.
- *
- * Input:
- *	ha = adapter block pointer.
- *	fcport = port structure pointer.
- *
- * Return:
- *	None.
- *
- * Context:
- */
 void
 qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
 {
@@ -3933,16 +3920,6 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
 		fcport->scan_state = 0;
 		qlt_schedule_sess_for_deletion(fcport);
-
-		if (vha->vp_idx != 0 && vha->vp_idx != fcport->vha->vp_idx)
-			continue;
-
-		/*
-		 * No point in marking the device as lost, if the device is
-		 * already DEAD.
-		 */
-		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
-			continue;
 	}
 }
 
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] qla2xxx: Remove non functional code
  2020-02-06 13:54 [PATCH] qla2xxx: Remove non functional code Daniel Wagner
@ 2020-02-06 15:22 ` Lee Duncan
  2020-03-24 22:35 ` Arun Easi
  2020-03-27  1:07 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Lee Duncan @ 2020-02-06 15:22 UTC (permalink / raw)
  To: Daniel Wagner, linux-scsi

On 2/6/20 5:54 AM, Daniel Wagner wrote:
> Remove code which has no functional use anymore since
> 3c75ad1d87c7 ("scsi: qla2xxx: Remove defer flag to indicate immeadiate
> port loss").
> 
> While at it remove also the stale function documentation.
> 
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
>  drivers/scsi/qla2xxx/qla_os.c | 23 -----------------------
>  1 file changed, 23 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
> index 79387ac8936f..27a5d0c7e246 100644
> --- a/drivers/scsi/qla2xxx/qla_os.c
> +++ b/drivers/scsi/qla2xxx/qla_os.c
> @@ -3909,19 +3909,6 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
>  	set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
>  }
>  
> -/*
> - * qla2x00_mark_all_devices_lost
> - *	Updates fcport state when device goes offline.
> - *
> - * Input:
> - *	ha = adapter block pointer.
> - *	fcport = port structure pointer.
> - *
> - * Return:
> - *	None.
> - *
> - * Context:
> - */
>  void
>  qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
>  {
> @@ -3933,16 +3920,6 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
>  	list_for_each_entry(fcport, &vha->vp_fcports, list) {
>  		fcport->scan_state = 0;
>  		qlt_schedule_sess_for_deletion(fcport);
> -
> -		if (vha->vp_idx != 0 && vha->vp_idx != fcport->vha->vp_idx)
> -			continue;
> -
> -		/*
> -		 * No point in marking the device as lost, if the device is
> -		 * already DEAD.
> -		 */
> -		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
> -			continue;
>  	}
>  }
>  
> 

Reviewed-by: Lee Duncan <lduncan@suse.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] qla2xxx: Remove non functional code
  2020-02-06 13:54 [PATCH] qla2xxx: Remove non functional code Daniel Wagner
  2020-02-06 15:22 ` Lee Duncan
@ 2020-03-24 22:35 ` Arun Easi
  2020-03-27  1:07 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Arun Easi @ 2020-03-24 22:35 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: linux-scsi

On Thu, 6 Feb 2020, 5:54am, Daniel Wagner wrote:

> Remove code which has no functional use anymore since
> 3c75ad1d87c7 ("scsi: qla2xxx: Remove defer flag to indicate immeadiate
> port loss").
> 
> While at it remove also the stale function documentation.
> 
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
>  drivers/scsi/qla2xxx/qla_os.c | 23 -----------------------
>  1 file changed, 23 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
> index 79387ac8936f..27a5d0c7e246 100644
> --- a/drivers/scsi/qla2xxx/qla_os.c
> +++ b/drivers/scsi/qla2xxx/qla_os.c
> @@ -3909,19 +3909,6 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
>  	set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
>  }
>  
> -/*
> - * qla2x00_mark_all_devices_lost
> - *	Updates fcport state when device goes offline.
> - *
> - * Input:
> - *	ha = adapter block pointer.
> - *	fcport = port structure pointer.
> - *
> - * Return:
> - *	None.
> - *
> - * Context:
> - */
>  void
>  qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
>  {
> @@ -3933,16 +3920,6 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
>  	list_for_each_entry(fcport, &vha->vp_fcports, list) {
>  		fcport->scan_state = 0;
>  		qlt_schedule_sess_for_deletion(fcport);
> -
> -		if (vha->vp_idx != 0 && vha->vp_idx != fcport->vha->vp_idx)
> -			continue;
> -
> -		/*
> -		 * No point in marking the device as lost, if the device is
> -		 * already DEAD.
> -		 */
> -		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
> -			continue;
>  	}
>  }
>  
> 

Looks good. Thanks Daniel.

Reviewed-by: Arun Easi <aeasi@marvell.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] qla2xxx: Remove non functional code
  2020-02-06 13:54 [PATCH] qla2xxx: Remove non functional code Daniel Wagner
  2020-02-06 15:22 ` Lee Duncan
  2020-03-24 22:35 ` Arun Easi
@ 2020-03-27  1:07 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2020-03-27  1:07 UTC (permalink / raw)
  To: Daniel Wagner; +Cc: linux-scsi


Daniel,

> Remove code which has no functional use anymore since 3c75ad1d87c7
> ("scsi: qla2xxx: Remove defer flag to indicate immeadiate port loss").

Applied to 5.7/scsi-queue, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-27  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 13:54 [PATCH] qla2xxx: Remove non functional code Daniel Wagner
2020-02-06 15:22 ` Lee Duncan
2020-03-24 22:35 ` Arun Easi
2020-03-27  1:07 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.