target: Add SCF_SCSI_TMR_CDB usage and drop se_tmr_req_cache
authorAndy Grover <agrover@redhat.com>
Thu, 19 Jan 2012 21:39:17 +0000 (13:39 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:47 +0000 (14:37 -0800)
commitc8e31f26feeb03dc6f51bff68135cc58431e099b
tree8d584fcb7cb7a58988cd2463a9a26f577410e6ac
parent35b2cdc4fea1f0d13e1602c07e62c797c9fe5ed4
target: Add SCF_SCSI_TMR_CDB usage and drop se_tmr_req_cache

Change the test for if a cmd is a tmr request to checking if
SCF_SCSI_TMR_CDB (a new flag) is set in cmd->se_cmd_flags.

Also remove se_tmr_req_cache usage in favor of kzalloc usage,
and make core_tmr_alloc_req() return int + setup se_cmd->se_tmr_req
directly and fix up various fabric module usages

Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/target/iscsi/iscsi_target_util.c
drivers/target/loopback/tcm_loop.c
drivers/target/target_core_tmr.c
drivers/target/target_core_transport.c
drivers/target/tcm_fc/tfc_cmd.c
include/target/target_core_base.h
include/target/target_core_fabric.h