diff mbox series

[v5,1/4] scsi: qla2xxx: Remove unused del_sess_list field

Message ID 0c335e86-5624-b599-5137-f1377419fb0c@I-love.SAKURA.ne.jp
State New
Headers show
Series [v5,1/4] scsi: qla2xxx: Remove unused del_sess_list field | expand

Commit Message

Tetsuo Handa Aug. 21, 2022, 3:57 a.m. UTC
"struct qla_tgt"->del_sess_list is no longer used since commit
726b85487067d7f5 ("qla2xxx: Add framework for async fabric discovery").

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Tested-by: Himanshu Madhani <himanshu.madhani@oracle.com>
---
Changes in v5:
  Added Reviewed-by and Tested-by from Himanshu Madhani.

 drivers/scsi/qla2xxx/qla_target.c | 1 -
 drivers/scsi/qla2xxx/qla_target.h | 3 ---
 2 files changed, 4 deletions(-)

Comments

Martin K. Petersen Aug. 23, 2022, 3:54 a.m. UTC | #1
Tetsuo,

> "struct qla_tgt"->del_sess_list is no longer used since commit
> 726b85487067d7f5 ("qla2xxx: Add framework for async fabric discovery").

Applied patches 1-4 to 6.1/scsi-staging, thanks!
Martin K. Petersen Sept. 1, 2022, 5:12 a.m. UTC | #2
On Sun, 21 Aug 2022 12:57:50 +0900, Tetsuo Handa wrote:

> "struct qla_tgt"->del_sess_list is no longer used since commit
> 726b85487067d7f5 ("qla2xxx: Add framework for async fabric discovery").
> 
> 

Applied to 6.1/scsi-queue, thanks!

[1/4] scsi: qla2xxx: Remove unused del_sess_list field
      https://git.kernel.org/mkp/scsi/c/e6852b41b560
[2/4] scsi: qla2xxx: Remove unused qlt_tmr_work()
      https://git.kernel.org/mkp/scsi/c/1b2b8d45ccd6
[3/4] scsi: qla2xxx: always wait for qlt_sess_work_fn() from qlt_stop_phase1()
      https://git.kernel.org/mkp/scsi/c/a4345557527f
[4/4] scsi: qla2xxx: avoid flush_scheduled_work() usage
      https://git.kernel.org/mkp/scsi/c/3cb0643a9aae
diff mbox series

Patch

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index 62666df1a59e..164bd0637a08 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -6512,7 +6512,6 @@  int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha)
 	tgt->ha = ha;
 	tgt->vha = base_vha;
 	init_waitqueue_head(&tgt->waitQ);
-	INIT_LIST_HEAD(&tgt->del_sess_list);
 	spin_lock_init(&tgt->sess_work_lock);
 	INIT_WORK(&tgt->sess_work, qlt_sess_work_fn);
 	INIT_LIST_HEAD(&tgt->sess_works_list);
diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h
index de3942b8efc4..e899e13696e9 100644
--- a/drivers/scsi/qla2xxx/qla_target.h
+++ b/drivers/scsi/qla2xxx/qla_target.h
@@ -813,9 +813,6 @@  struct qla_tgt {
 	/* Count of sessions refering qla_tgt. Protected by hardware_lock. */
 	int sess_count;
 
-	/* Protected by hardware_lock */
-	struct list_head del_sess_list;
-
 	spinlock_t sess_work_lock;
 	struct list_head sess_works_list;
 	struct work_struct sess_work;