diff options
author | Christoph Hellwig <hch@lst.de> | 2016-05-02 09:45:25 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 04:19:49 -0400 |
commit | d94331fab6d4d48280a5cea646352db90777966d (patch) | |
tree | 8d4814eb16f6708d70113a4701253c502b7ab71a /include/target | |
parent | 44f33d0fb5a7181cc34529c211d7b5039d8a0a4b (diff) |
target: remove sess_kref and ->shutdown_session
Both of them are unused now that drivers handle any delayed session
shutdown internally.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 1 | ||||
-rw-r--r-- | include/target/target_core_fabric.h | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 1d4e1cb7f373..b316b44d03f3 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -602,7 +602,6 @@ struct se_session { | |||
602 | struct list_head sess_cmd_list; | 602 | struct list_head sess_cmd_list; |
603 | struct list_head sess_wait_list; | 603 | struct list_head sess_wait_list; |
604 | spinlock_t sess_cmd_lock; | 604 | spinlock_t sess_cmd_lock; |
605 | struct kref sess_kref; | ||
606 | void *sess_cmd_map; | 605 | void *sess_cmd_map; |
607 | struct percpu_ida sess_tag_pool; | 606 | struct percpu_ida sess_tag_pool; |
608 | }; | 607 | }; |
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 8ff6d40a294f..ec79da3b43df 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -50,10 +50,6 @@ struct target_core_fabric_ops { | |||
50 | */ | 50 | */ |
51 | int (*check_stop_free)(struct se_cmd *); | 51 | int (*check_stop_free)(struct se_cmd *); |
52 | void (*release_cmd)(struct se_cmd *); | 52 | void (*release_cmd)(struct se_cmd *); |
53 | /* | ||
54 | * Called with spin_lock_bh(struct se_portal_group->session_lock held. | ||
55 | */ | ||
56 | int (*shutdown_session)(struct se_session *); | ||
57 | void (*close_session)(struct se_session *); | 53 | void (*close_session)(struct se_session *); |
58 | u32 (*sess_get_index)(struct se_session *); | 54 | u32 (*sess_get_index)(struct se_session *); |
59 | /* | 55 | /* |
@@ -123,8 +119,6 @@ void __transport_register_session(struct se_portal_group *, | |||
123 | struct se_node_acl *, struct se_session *, void *); | 119 | struct se_node_acl *, struct se_session *, void *); |
124 | void transport_register_session(struct se_portal_group *, | 120 | void transport_register_session(struct se_portal_group *, |
125 | struct se_node_acl *, struct se_session *, void *); | 121 | struct se_node_acl *, struct se_session *, void *); |
126 | int target_get_session(struct se_session *); | ||
127 | void target_put_session(struct se_session *); | ||
128 | ssize_t target_show_dynamic_sessions(struct se_portal_group *, char *); | 122 | ssize_t target_show_dynamic_sessions(struct se_portal_group *, char *); |
129 | void transport_free_session(struct se_session *); | 123 | void transport_free_session(struct se_session *); |
130 | void target_put_nacl(struct se_node_acl *); | 124 | void target_put_nacl(struct se_node_acl *); |