diff options
author | Christoph Hellwig <hch@lst.de> | 2016-05-02 09:45:22 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 04:19:26 -0400 |
commit | 36ec2ddc0d9309d52e14eb84c0807a78604460dc (patch) | |
tree | e03ae54dff98c6caadb3eacb0e0c74f312000ebf /Documentation/target/tcm_mod_builder.py | |
parent | 22d11759a4e7018f8cd7914e4e706ca2c96d6c01 (diff) |
target: make close_session optional
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'Documentation/target/tcm_mod_builder.py')
-rwxr-xr-x | Documentation/target/tcm_mod_builder.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Documentation/target/tcm_mod_builder.py b/Documentation/target/tcm_mod_builder.py index 6b8aa4086c5d..94bf6944bb1e 100755 --- a/Documentation/target/tcm_mod_builder.py +++ b/Documentation/target/tcm_mod_builder.py | |||
@@ -294,7 +294,6 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
294 | buf += " .tpg_check_prod_mode_write_protect = " + fabric_mod_name + "_check_false,\n" | 294 | buf += " .tpg_check_prod_mode_write_protect = " + fabric_mod_name + "_check_false,\n" |
295 | buf += " .tpg_get_inst_index = " + fabric_mod_name + "_tpg_get_inst_index,\n" | 295 | buf += " .tpg_get_inst_index = " + fabric_mod_name + "_tpg_get_inst_index,\n" |
296 | buf += " .release_cmd = " + fabric_mod_name + "_release_cmd,\n" | 296 | buf += " .release_cmd = " + fabric_mod_name + "_release_cmd,\n" |
297 | buf += " .close_session = " + fabric_mod_name + "_close_session,\n" | ||
298 | buf += " .sess_get_index = " + fabric_mod_name + "_sess_get_index,\n" | 297 | buf += " .sess_get_index = " + fabric_mod_name + "_sess_get_index,\n" |
299 | buf += " .sess_get_initiator_sid = NULL,\n" | 298 | buf += " .sess_get_initiator_sid = NULL,\n" |
300 | buf += " .write_pending = " + fabric_mod_name + "_write_pending,\n" | 299 | buf += " .write_pending = " + fabric_mod_name + "_write_pending,\n" |
@@ -466,13 +465,6 @@ def tcm_mod_dump_fabric_ops(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
466 | buf += "}\n\n" | 465 | buf += "}\n\n" |
467 | bufi += "void " + fabric_mod_name + "_release_cmd(struct se_cmd *);\n" | 466 | bufi += "void " + fabric_mod_name + "_release_cmd(struct se_cmd *);\n" |
468 | 467 | ||
469 | if re.search('close_session\)\(', fo): | ||
470 | buf += "void " + fabric_mod_name + "_close_session(struct se_session *se_sess)\n" | ||
471 | buf += "{\n" | ||
472 | buf += " return;\n" | ||
473 | buf += "}\n\n" | ||
474 | bufi += "void " + fabric_mod_name + "_close_session(struct se_session *);\n" | ||
475 | |||
476 | if re.search('sess_get_index\)\(', fo): | 468 | if re.search('sess_get_index\)\(', fo): |
477 | buf += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *se_sess)\n" | 469 | buf += "u32 " + fabric_mod_name + "_sess_get_index(struct se_session *se_sess)\n" |
478 | buf += "{\n" | 470 | buf += "{\n" |