diff options
-rw-r--r-- | drivers/target/target_core_transport.c | 4 | ||||
-rw-r--r-- | include/target/target_core_fabric.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 1520dd2dd718..35bae7dd670a 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -76,7 +76,6 @@ static int transport_generic_get_mem(struct se_cmd *cmd); | |||
76 | static void transport_put_cmd(struct se_cmd *cmd); | 76 | static void transport_put_cmd(struct se_cmd *cmd); |
77 | static void transport_remove_cmd_from_queue(struct se_cmd *cmd); | 77 | static void transport_remove_cmd_from_queue(struct se_cmd *cmd); |
78 | static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq); | 78 | static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq); |
79 | static void transport_generic_request_failure(struct se_cmd *); | ||
80 | static void target_complete_ok_work(struct work_struct *work); | 79 | static void target_complete_ok_work(struct work_struct *work); |
81 | 80 | ||
82 | int init_se_kmem_caches(void) | 81 | int init_se_kmem_caches(void) |
@@ -1866,7 +1865,7 @@ static int transport_stop_tasks_for_cmd(struct se_cmd *cmd) | |||
1866 | /* | 1865 | /* |
1867 | * Handle SAM-esque emulation for generic transport request failures. | 1866 | * Handle SAM-esque emulation for generic transport request failures. |
1868 | */ | 1867 | */ |
1869 | static void transport_generic_request_failure(struct se_cmd *cmd) | 1868 | void transport_generic_request_failure(struct se_cmd *cmd) |
1870 | { | 1869 | { |
1871 | int ret = 0; | 1870 | int ret = 0; |
1872 | 1871 | ||
@@ -1958,6 +1957,7 @@ queue_full: | |||
1958 | cmd->t_state = TRANSPORT_COMPLETE_QF_OK; | 1957 | cmd->t_state = TRANSPORT_COMPLETE_QF_OK; |
1959 | transport_handle_queue_full(cmd, cmd->se_dev); | 1958 | transport_handle_queue_full(cmd, cmd->se_dev); |
1960 | } | 1959 | } |
1960 | EXPORT_SYMBOL(transport_generic_request_failure); | ||
1961 | 1961 | ||
1962 | static inline u32 transport_lba_21(unsigned char *cdb) | 1962 | static inline u32 transport_lba_21(unsigned char *cdb) |
1963 | { | 1963 | { |
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index fcc340698d81..04ead0866108 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -145,6 +145,7 @@ int core_alua_check_nonop_delay(struct se_cmd *); | |||
145 | int core_tmr_alloc_req(struct se_cmd *, void *, u8, gfp_t); | 145 | int core_tmr_alloc_req(struct se_cmd *, void *, u8, gfp_t); |
146 | void core_tmr_release_req(struct se_tmr_req *); | 146 | void core_tmr_release_req(struct se_tmr_req *); |
147 | int transport_generic_handle_tmr(struct se_cmd *); | 147 | int transport_generic_handle_tmr(struct se_cmd *); |
148 | void transport_generic_request_failure(struct se_cmd *); | ||
148 | int transport_lookup_tmr_lun(struct se_cmd *, u32); | 149 | int transport_lookup_tmr_lun(struct se_cmd *, u32); |
149 | 150 | ||
150 | struct se_node_acl *core_tpg_check_initiator_node_acl(struct se_portal_group *, | 151 | struct se_node_acl *core_tpg_check_initiator_node_acl(struct se_portal_group *, |