diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-29 03:29:59 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-06 01:00:57 -0500 |
commit | 6f21475576dde397cd2580262209d4080fbd5458 (patch) | |
tree | 2fa1831eaec0722b2e48278e447a3aa57b52a9fc | |
parent | 9649fa1b8764f64c8cc4293e197e14cd46fe7205 (diff) |
target: remove the unused se_dev_list
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/target_core_configfs.c | 11 | ||||
-rw-r--r-- | drivers/target/target_core_device.c | 1 | ||||
-rw-r--r-- | include/target/target_core_base.h | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index e0c1e8a8dd4e..93d4f6a1b798 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -67,9 +67,6 @@ static struct config_group target_core_hbagroup; | |||
67 | static struct config_group alua_group; | 67 | static struct config_group alua_group; |
68 | static struct config_group alua_lu_gps_group; | 68 | static struct config_group alua_lu_gps_group; |
69 | 69 | ||
70 | static DEFINE_SPINLOCK(se_device_lock); | ||
71 | static LIST_HEAD(se_dev_list); | ||
72 | |||
73 | static inline struct se_hba * | 70 | static inline struct se_hba * |
74 | item_to_hba(struct config_item *item) | 71 | item_to_hba(struct config_item *item) |
75 | { | 72 | { |
@@ -2741,7 +2738,6 @@ static struct config_group *target_core_make_subdev( | |||
2741 | " struct se_subsystem_dev\n"); | 2738 | " struct se_subsystem_dev\n"); |
2742 | goto unlock; | 2739 | goto unlock; |
2743 | } | 2740 | } |
2744 | INIT_LIST_HEAD(&se_dev->se_dev_node); | ||
2745 | INIT_LIST_HEAD(&se_dev->t10_wwn.t10_vpd_list); | 2741 | INIT_LIST_HEAD(&se_dev->t10_wwn.t10_vpd_list); |
2746 | spin_lock_init(&se_dev->t10_wwn.t10_vpd_lock); | 2742 | spin_lock_init(&se_dev->t10_wwn.t10_vpd_lock); |
2747 | INIT_LIST_HEAD(&se_dev->t10_pr.registration_list); | 2743 | INIT_LIST_HEAD(&se_dev->t10_pr.registration_list); |
@@ -2777,9 +2773,6 @@ static struct config_group *target_core_make_subdev( | |||
2777 | " from allocate_virtdevice()\n"); | 2773 | " from allocate_virtdevice()\n"); |
2778 | goto out; | 2774 | goto out; |
2779 | } | 2775 | } |
2780 | spin_lock(&se_device_lock); | ||
2781 | list_add_tail(&se_dev->se_dev_node, &se_dev_list); | ||
2782 | spin_unlock(&se_device_lock); | ||
2783 | 2776 | ||
2784 | config_group_init_type_name(&se_dev->se_dev_group, name, | 2777 | config_group_init_type_name(&se_dev->se_dev_group, name, |
2785 | &target_core_dev_cit); | 2778 | &target_core_dev_cit); |
@@ -2874,10 +2867,6 @@ static void target_core_drop_subdev( | |||
2874 | mutex_lock(&hba->hba_access_mutex); | 2867 | mutex_lock(&hba->hba_access_mutex); |
2875 | t = hba->transport; | 2868 | t = hba->transport; |
2876 | 2869 | ||
2877 | spin_lock(&se_device_lock); | ||
2878 | list_del(&se_dev->se_dev_node); | ||
2879 | spin_unlock(&se_device_lock); | ||
2880 | |||
2881 | dev_stat_grp = &se_dev->dev_stat_grps.stat_group; | 2870 | dev_stat_grp = &se_dev->dev_stat_grps.stat_group; |
2882 | for (i = 0; dev_stat_grp->default_groups[i]; i++) { | 2871 | for (i = 0; dev_stat_grp->default_groups[i]; i++) { |
2883 | df_item = &dev_stat_grp->default_groups[i]->cg_item; | 2872 | df_item = &dev_stat_grp->default_groups[i]->cg_item; |
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index dd5adb82e3df..e2be1f510da8 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c | |||
@@ -1584,7 +1584,6 @@ int core_dev_setup_virtual_lun0(void) | |||
1584 | ret = -ENOMEM; | 1584 | ret = -ENOMEM; |
1585 | goto out; | 1585 | goto out; |
1586 | } | 1586 | } |
1587 | INIT_LIST_HEAD(&se_dev->se_dev_node); | ||
1588 | INIT_LIST_HEAD(&se_dev->t10_wwn.t10_vpd_list); | 1587 | INIT_LIST_HEAD(&se_dev->t10_wwn.t10_vpd_list); |
1589 | spin_lock_init(&se_dev->t10_wwn.t10_vpd_lock); | 1588 | spin_lock_init(&se_dev->t10_wwn.t10_vpd_lock); |
1590 | INIT_LIST_HEAD(&se_dev->t10_pr.registration_list); | 1589 | INIT_LIST_HEAD(&se_dev->t10_pr.registration_list); |
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 098a15611aba..6873c7dd9145 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -669,7 +669,6 @@ struct se_subsystem_dev { | |||
669 | struct t10_reservation t10_pr; | 669 | struct t10_reservation t10_pr; |
670 | spinlock_t se_dev_lock; | 670 | spinlock_t se_dev_lock; |
671 | void *se_dev_su_ptr; | 671 | void *se_dev_su_ptr; |
672 | struct list_head se_dev_node; | ||
673 | struct config_group se_dev_group; | 672 | struct config_group se_dev_group; |
674 | /* For T10 Reservations */ | 673 | /* For T10 Reservations */ |
675 | struct config_group se_dev_pr_group; | 674 | struct config_group se_dev_pr_group; |