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
..
2012-05-26 12:22:27 -07:00
2012-05-26 12:42:29 -07:00
2012-05-24 16:22:53 -04:00
2012-05-31 08:46:50 +02:00
2012-05-26 13:05:55 -07:00
2012-05-08 12:35:06 +02:00
2012-05-26 12:42:29 -07:00
2012-05-23 14:07:06 -07:00
2012-05-22 16:02:13 -07:00
2012-05-22 16:02:13 -07:00
2012-05-14 13:37:45 -07:00
2012-05-29 16:22:32 -07:00
2012-06-06 09:49:28 -07:00
2012-05-26 12:42:29 -07:00
2012-05-29 11:53:11 -07:00
2012-06-07 15:22:21 +03:00
2012-05-22 16:02:13 -07:00
2012-05-07 09:56:39 +08:00
2012-05-29 11:53:11 -07:00
2012-05-30 08:49:28 -07:00
2012-05-26 13:05:55 -07:00
2012-05-16 12:46:37 -04:00
2012-06-01 16:57:51 -07:00
2012-05-26 12:42:29 -07:00
2012-05-22 16:34:21 -07:00
2012-05-26 12:22:27 -07:00