aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tcm_fc.h
diff options
context:
space:
mode:
authorKiran Patil <kiran.patil@intel.com>2011-08-26 12:25:25 -0400
committerNicholas A. Bellinger <nab@linux-iscsi.org>2011-09-16 05:29:27 -0400
commit079587b4eb4d3b78a4d65d142f662aa9d7eedab4 (patch)
tree1316ea524dac4cfd2979f040b3908699c02df840 /drivers/target/tcm_fc/tcm_fc.h
parentbcac364a24c894c4cf8cf219b7863c192cd34079 (diff)
tcm_fc: Invalidation of DDP context for FCoE target in error conditions
Problem: HW DDP context wasn;t invalidated in case of ABORTS, etc... This leads to the problem where memory pages which are used for DDP as user descriptor could get reused for some other purpose (such as to satisfy new memory allocation request either by kernel or user mode threads) and since HW DDP context was not invalidated, HW continue to write to those pages, hence causing memory corruption. Fix: Either on incoming ABORTS or due to exchange time out, allowed the target to cleanup HW DDP context if it was setup for respective ft_cmd. Added new function to perform this cleanup, furthur it can be enhanced for other cleanup activity. Additinal Notes: To avoid calling ddp_done from multiple places, composed the functionality in helper function "ft_invl_hw_context" and it is being called from multiple places. Cleaned up code in function "ft_recv_write_data" w.r.t DDP. Signed-off-by: Kiran Patil <kiran.patil@intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc/tcm_fc.h')
0 files changed, 0 insertions, 0 deletions