Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] tcm_mod_builder.py: Fix generated *_drop_nodeacl() handler

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 <fubo.chen@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Fubo Chen and committed by
James Bottomley
f45934e0 12a18bdc

+1
+1
Documentation/target/tcm_mod_builder.py
··· 289 289 buf += "{\n" 290 290 buf += " struct " + fabric_mod_name + "_nacl *nacl = container_of(se_acl,\n" 291 291 buf += " struct " + fabric_mod_name + "_nacl, se_node_acl);\n" 292 + buf += " core_tpg_del_initiator_node_acl(se_acl->se_tpg, se_acl, 1);\n" 292 293 buf += " kfree(nacl);\n" 293 294 buf += "}\n\n" 294 295