target: Fix target_submit_tmr se_tmr_req allocation failures
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 09:40:24 +0000 (01:40 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 26 Feb 2012 02:38:34 +0000 (18:38 -0800)
commitc7042cae58c13970f39c0820a3aab2a13dda9fe1
tree63d75c4c8e37d9a26033ed11b47345b4ae697524
parent3de55ec74aa803d7aa1e581700086d755c2599d2
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>
drivers/target/target_core_transport.c
include/target/target_core_fabric.h