diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-10 17:32:52 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-10 17:41:59 -0500 |
commit | 01468346546a9bcc09035a7e8b71f78af5b7133a (patch) | |
tree | 5d7b69d10a2fb7e7f34717531fd099cae24f8044 /include/target | |
parent | 41ac82b668177876d5965d5f60956fb0fbcdb514 (diff) |
target: Add se_node_acl->acl_free_comp for NodeACL release path
Add se_node_acl->acl_free_comp for NodeACL release path to wait for outstanding
fabric session shutdown to complete in transport_deregister_session() before
finishing NodeACL release from configfs process context.
Also make transport_deregister_session() clear the comp_nacl bit
to skip se_node_acl->acl_free_comp completion for dynamically generated
NodeACL during fabric session shutdown.
Cc: Roland Dreier <roland@purestorage.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Joern Engel <joern@logfs.org>
Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index d63079409eff..f8aa300b0d25 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -641,6 +641,7 @@ struct se_node_acl { | |||
641 | struct config_group *acl_default_groups[5]; | 641 | struct config_group *acl_default_groups[5]; |
642 | struct list_head acl_list; | 642 | struct list_head acl_list; |
643 | struct list_head acl_sess_list; | 643 | struct list_head acl_sess_list; |
644 | struct completion acl_free_comp; | ||
644 | }; | 645 | }; |
645 | 646 | ||
646 | struct se_session { | 647 | struct se_session { |