diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 04:40:24 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 21:38:34 -0500 |
commit | c7042cae58c13970f39c0820a3aab2a13dda9fe1 (patch) | |
tree | 63d75c4c8e37d9a26033ed11b47345b4ae697524 /include/target | |
parent | 3de55ec74aa803d7aa1e581700086d755c2599d2 (diff) |
target: Fix target_submit_tmr se_tmr_req allocation failures
This patch makes target_submit_tmr() se_tmr_req allocation occur before
target_get_sess_cmd(), and changes target_submit_tmr() to return a failure
w/ non zero status to the fabric caller upon core_tmr_alloc_req() failure.
Cc: Andy Grover <agrover@redhat.com>
Cc: Kiran Patil <kiran.patil@intel.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_fabric.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 04ead0866108..77a3b6e4f44c 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -116,7 +116,7 @@ int transport_lookup_cmd_lun(struct se_cmd *, u32); | |||
116 | int transport_generic_allocate_tasks(struct se_cmd *, unsigned char *); | 116 | int transport_generic_allocate_tasks(struct se_cmd *, unsigned char *); |
117 | void target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *, | 117 | void target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *, |
118 | unsigned char *, u32, u32, int, int, int); | 118 | unsigned char *, u32, u32, int, int, int); |
119 | void target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, | 119 | int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, |
120 | unsigned char *sense, u32 unpacked_lun, | 120 | unsigned char *sense, u32 unpacked_lun, |
121 | void *fabric_tmr_ptr, unsigned char tm_type, int flags); | 121 | void *fabric_tmr_ptr, unsigned char tm_type, int flags); |
122 | int transport_handle_cdb_direct(struct se_cmd *); | 122 | int transport_handle_cdb_direct(struct se_cmd *); |