diff options
author | Christoph Hellwig <hch@lst.de> | 2016-03-29 07:03:33 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-03-30 23:06:43 -0400 |
commit | ce7043fd903eb9722a885b98b53fffe2cedfb047 (patch) | |
tree | 9c4bd07f8030f7dd42c040f7f71d7f72ecf8018d | |
parent | 572a143489a10360ce2aca98c64f8be43c8400a6 (diff) |
target: remove ->fabric_cleanup_nodeacl
Instead we can clean up the list of default ACLs in core code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 9 | ||||
-rw-r--r-- | drivers/target/target_core_fabric_configfs.c | 4 | ||||
-rw-r--r-- | include/target/target_core_fabric.h | 1 |
3 files changed, 1 insertions, 13 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index a24443ba59ea..3c05d1e97f8f 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c | |||
@@ -779,14 +779,6 @@ static int lio_target_init_nodeacl(struct se_node_acl *se_nacl, | |||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
781 | 781 | ||
782 | static void lio_target_cleanup_nodeacl( struct se_node_acl *se_nacl) | ||
783 | { | ||
784 | struct iscsi_node_acl *acl = container_of(se_nacl, | ||
785 | struct iscsi_node_acl, se_node_acl); | ||
786 | |||
787 | configfs_remove_default_groups(&acl->se_node_acl.acl_fabric_stat_group); | ||
788 | } | ||
789 | |||
790 | /* End items for lio_target_acl_cit */ | 782 | /* End items for lio_target_acl_cit */ |
791 | 783 | ||
792 | /* Start items for lio_target_tpg_attrib_cit */ | 784 | /* Start items for lio_target_tpg_attrib_cit */ |
@@ -1665,7 +1657,6 @@ const struct target_core_fabric_ops iscsi_ops = { | |||
1665 | .fabric_make_np = lio_target_call_addnptotpg, | 1657 | .fabric_make_np = lio_target_call_addnptotpg, |
1666 | .fabric_drop_np = lio_target_call_delnpfromtpg, | 1658 | .fabric_drop_np = lio_target_call_delnpfromtpg, |
1667 | .fabric_init_nodeacl = lio_target_init_nodeacl, | 1659 | .fabric_init_nodeacl = lio_target_init_nodeacl, |
1668 | .fabric_cleanup_nodeacl = lio_target_cleanup_nodeacl, | ||
1669 | 1660 | ||
1670 | .tfc_discovery_attrs = lio_target_discovery_auth_attrs, | 1661 | .tfc_discovery_attrs = lio_target_discovery_auth_attrs, |
1671 | .tfc_wwn_attrs = lio_target_wwn_attrs, | 1662 | .tfc_wwn_attrs = lio_target_wwn_attrs, |
diff --git a/drivers/target/target_core_fabric_configfs.c b/drivers/target/target_core_fabric_configfs.c index 1bd5c72b663e..096790ad6e50 100644 --- a/drivers/target/target_core_fabric_configfs.c +++ b/drivers/target/target_core_fabric_configfs.c | |||
@@ -338,10 +338,8 @@ static void target_fabric_nacl_base_release(struct config_item *item) | |||
338 | { | 338 | { |
339 | struct se_node_acl *se_nacl = container_of(to_config_group(item), | 339 | struct se_node_acl *se_nacl = container_of(to_config_group(item), |
340 | struct se_node_acl, acl_group); | 340 | struct se_node_acl, acl_group); |
341 | struct target_fabric_configfs *tf = se_nacl->se_tpg->se_tpg_wwn->wwn_tf; | ||
342 | 341 | ||
343 | if (tf->tf_ops->fabric_cleanup_nodeacl) | 342 | configfs_remove_default_groups(&se_nacl->acl_fabric_stat_group); |
344 | tf->tf_ops->fabric_cleanup_nodeacl(se_nacl); | ||
345 | core_tpg_del_initiator_node_acl(se_nacl); | 343 | core_tpg_del_initiator_node_acl(se_nacl); |
346 | } | 344 | } |
347 | 345 | ||
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 685a51aa98cc..5a9dd1892b70 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -87,7 +87,6 @@ struct target_core_fabric_ops { | |||
87 | struct config_group *, const char *); | 87 | struct config_group *, const char *); |
88 | void (*fabric_drop_np)(struct se_tpg_np *); | 88 | void (*fabric_drop_np)(struct se_tpg_np *); |
89 | int (*fabric_init_nodeacl)(struct se_node_acl *, const char *); | 89 | int (*fabric_init_nodeacl)(struct se_node_acl *, const char *); |
90 | void (*fabric_cleanup_nodeacl)(struct se_node_acl *); | ||
91 | 90 | ||
92 | struct configfs_attribute **tfc_discovery_attrs; | 91 | struct configfs_attribute **tfc_discovery_attrs; |
93 | struct configfs_attribute **tfc_wwn_attrs; | 92 | struct configfs_attribute **tfc_wwn_attrs; |