From: Nicholas Bellinger Date: Thu, 5 Jun 2014 23:27:53 +0000 (-0700) Subject: tcm_fc: Generate TASK_SET_FULL status for DataIN failures X-Git-Tag: omap-for-v3.16/fixes-against-rc1~26^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3e5fe1688b998ba5287a68667ef7cc568739e44;p=pandora-kernel.git tcm_fc: Generate TASK_SET_FULL status for DataIN failures This patch changes ft_queue_data_in() to set SAM_STAT_TASK_SET_FULL status upon a lport->tt.seq_send() failure, where it will now stop sending subsequent DataIN, and immediately attempt to send the response with exception status. Sending a response with SAM_STAT_TASK_SET_FULL status is useful in order to signal the initiator that it should try to reduce it's current queue_depth, to lower the number of outstanding I/Os on the wire. Also, add a check to skip sending DataIN if TASK_SET_FULL status has already been set due to a response lport->tt.seq_send() failure, that has asked target-core to requeue a response. Reported-by: Vasu Dev Reviewed-by: Vasu Dev Cc: Jun Wu Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed