]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Fix target_submit_tmr LUN lookup failures
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 09:30:55 +0000 (01:30 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:51 +0000 (14:37 -0800)
commit3de55ec74aa803d7aa1e581700086d755c2599d2
tree713add78069fd0082a7fd2ed33612623d9608c97
parentd335e6054db616bce3f040e659fa38440518ad1d
target: Fix target_submit_tmr LUN lookup failures

This patch changes target_submit_tmr() LUN lookup failures to set response
status TMR_LUN_DOES_NOT_EXIST and invoke TFO->queue_tm_rsp(), instead of
sending CHECK_CONDITION status that can cause problems with Linux FCoE
clients.

Tested with tcm_fc ports and explict LUN_RESET lookup failures.

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