summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@daterainc.com>2013-08-21 19:04:10 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-09 17:29:34 -0400
commit76dde50ebef75773ea2b68e0bf914e87e6a3711c (patch)
tree9fd1037c5814040f97717864ce8cb9575920ac6d
parent47e459e622f07c2564e6be8412d75389d2a807b8 (diff)
target: Make __target_execute_cmd() available as extern
Required by COMPARE_AND_WRITE for write instance user-data submission, in order to bypass target_execute_cmd() checks. Reported-by: Christoph Hellwig <hch@lst.de> Cc: Roland Dreier <roland@purestorage.com> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
-rw-r--r--drivers/target/target_core_transport.c2
-rw-r--r--include/target/target_core_fabric.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 87d64add7874..672cb37a43c5 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -1626,7 +1626,7 @@ queue_full:
1626} 1626}
1627EXPORT_SYMBOL(transport_generic_request_failure); 1627EXPORT_SYMBOL(transport_generic_request_failure);
1628 1628
1629static void __target_execute_cmd(struct se_cmd *cmd) 1629void __target_execute_cmd(struct se_cmd *cmd)
1630{ 1630{
1631 sense_reason_t ret; 1631 sense_reason_t ret;
1632 1632
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h
index d559c36692af..192eb52684e9 100644
--- a/include/target/target_core_fabric.h
+++ b/include/target/target_core_fabric.h
@@ -134,6 +134,7 @@ int core_tmr_alloc_req(struct se_cmd *, void *, u8, gfp_t);
134void core_tmr_release_req(struct se_tmr_req *); 134void core_tmr_release_req(struct se_tmr_req *);
135int transport_generic_handle_tmr(struct se_cmd *); 135int transport_generic_handle_tmr(struct se_cmd *);
136void transport_generic_request_failure(struct se_cmd *, sense_reason_t); 136void transport_generic_request_failure(struct se_cmd *, sense_reason_t);
137void __target_execute_cmd(struct se_cmd *);
137int transport_lookup_tmr_lun(struct se_cmd *, u32); 138int transport_lookup_tmr_lun(struct se_cmd *, u32);
138 139
139struct se_node_acl *core_tpg_check_initiator_node_acl(struct se_portal_group *, 140struct se_node_acl *core_tpg_check_initiator_node_acl(struct se_portal_group *,