From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicholas A. Bellinger" Subject: [PATCH 31/31] target: Fix generated *_drop_nodeacl() handler in tcm_mod_builder.py Date: Wed, 9 Feb 2011 15:36:45 -0800 Message-ID: <1297294605-23662-32-git-send-email-nab@linux-iscsi.org> Return-path: Received: from smtp105.sbc.mail.mud.yahoo.com ([68.142.198.204]:44077 "HELO smtp105.sbc.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750738Ab1BIXgl (ORCPT ); Wed, 9 Feb 2011 18:36:41 -0500 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi , James Bottomley Cc: Fubo Chen , "Nicholas A. Bellinger" From: Fubo Chen This patch adds the missing core_tpg_del_initiator_node_acl() call required by fabric modules for struct se_node_acl->acl_group context shutdown via target_core_fabric_configfs.c:target_fabric_nacl_base_release() -> struct target_core_fabric_ops->fabric_drop_nodeacl() for tcm_mod_builder.py generated $FABRIC_MOD_configfs.c skeleton code. Signed-off-by: Fubo Chen Signed-off-by: Nicholas A. Bellinger --- Documentation/target/tcm_mod_builder.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Documentation/target/tcm_mod_builder.py b/Documentation/target/tcm_mod_builder.py index 89af6c7..7ef9b84 100755 --- a/Documentation/target/tcm_mod_builder.py +++ b/Documentation/target/tcm_mod_builder.py @@ -289,6 +289,7 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): buf += "{\n" buf += " struct " + fabric_mod_name + "_nacl *nacl = container_of(se_acl,\n" buf += " struct " + fabric_mod_name + "_nacl, se_node_acl);\n" + buf += " core_tpg_del_initiator_node_acl(se_acl->se_tpg, se_acl, 1);\n" buf += " kfree(nacl);\n" buf += "}\n\n" -- 1.7.4