kernel-ark/drivers/target/tcm_fc
Roland Dreier d6dfc868bc target: Allow for target_submit_cmd() returning errors
We want it to be possible for target_submit_cmd() to return errors up
to its fabric module callers.  For now just update the prototype to
return an int, and update all callers to handle non-zero return values
as an error.

This is immediately useful for tcm_qla2xxx to fix a long-standing active
I/O session shutdown race, but tcm_fc, usb-gadget, and sbp-target the
fabric maintainers need to check + ACK that handling a target_submit_cmd()
failure due to session shutdown does not introduce regressions

(nab: Respin against for-next after initial NACK + update docbook comment +
      fix double se_cmd init in exception path for usb-gadget)

Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Cc: Chris Boot <bootc@bootc.net>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Mark Rustad <mark.d.rustad@intel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-07-17 17:05:05 -07:00
..
Kconfig
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h tcm_fc: Add abort flag for gracefully handling exchange timeout 2012-04-06 18:56:43 -07:00
tfc_cmd.c target: Allow for target_submit_cmd() returning errors 2012-07-17 17:05:05 -07:00
tfc_conf.c tcm_fc: Remove use of transport_do_task_sg_chain() 2012-04-14 17:40:31 -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: Resolve suspicious RCU usage warnings 2012-07-06 12:52:09 -07:00