alistair23-linux/drivers/target/tcm_fc
Roland Dreier 9c58b7ddd7 target: Simplify fabric sense data length handling
Every fabric driver has to supply a se_tfo->set_fabric_sense_len()
method, just so iSCSI can return an offset of 2.  However, every fabric
driver is already allocating a sense buffer and passing it into the
target core, either via transport_init_se_cmd() or target_submit_cmd().

So instead of having iSCSI pass the start of its sense buffer into the
core and then later tell the core to skip the first 2 bytes, it seems
easier for iSCSI just to do the offset of 2 when it passes the sense
buffer into the core.  Then we can drop the se_tfo->set_fabric_sense_len()
everywhere, and just add a couple of lines of code to iSCSI to set the
sense data length to the beginning of the buffer right before it sends
it over the network.

(nab: Remove .set_fabric_sense_len usage from tcm_qla2xxx_npiv_ops +
      change transport_get_sense_buffer to follow v3.6-rc6 code w/o
      ->set_fabric_sense_len usage)

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-09-17 17:12:58 -07:00
..
Kconfig
Makefile
tcm_fc.h tcm_fc: Avoid debug overhead when not debugging 2012-08-16 17:33:46 -07:00
tfc_cmd.c tcm_fc: Avoid debug overhead when not debugging 2012-08-16 17:33:46 -07:00
tfc_conf.c target: Simplify fabric sense data length handling 2012-09-17 17:12:58 -07:00
tfc_io.c tcm_fc: Offload WRITE I/O backend submission to tpg workqueue 2012-07-16 17:35:19 -07:00
tfc_sess.c tcm_fc: rcu_deref outside rcu lock/unlock section 2012-08-20 14:52:15 -07:00