android_kernel_motorola_sm6225/drivers/target/tcm_fc
Mark Rustad e1c4038282 tcm_fc: Add abort flag for gracefully handling exchange timeout
Add abort flag and use it to terminate processing when an exchange
is timed out or is reset. The abort flag is used in place of the
transport_generic_free_cmd function call in the reset and timeout
cases, because calling that function in that context would free
memory that was in use. The aborted flag allows the lifetime to
be managed in a more normal way, while truncating the processing.

This change eliminates a source of memory corruption which
manifested in a variety of ugly ways.

(nab: Drop unused struct fc_exch *ep in ft_recv_seq)

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Acked-by: Kiran Patil <Kiran.patil@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-04-06 18:56:43 -07:00
..
Kconfig [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
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 tcm_fc: Add abort flag for gracefully handling exchange timeout 2012-04-06 18:56:43 -07:00
tfc_conf.c target: Drop unused legacy target_core_fabric_ops API callers 2012-03-10 14:42:55 -08:00
tfc_io.c tcm_fc: Add abort flag for gracefully handling exchange timeout 2012-04-06 18:56:43 -07:00
tfc_sess.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2012-03-22 12:38:04 -07:00