From: Nicholas Bellinger Date: Sat, 31 Aug 2013 22:12:01 +0000 (-0700) Subject: target: Fix se_cmd->state_list leak regression during WRITE failure X-Git-Tag: v3.12-rc1~179^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c130480b129fbfd7932ad7af3f4ffcea630b027f;p=pandora-kernel.git target: Fix se_cmd->state_list leak regression during WRITE failure This patch addresses a v3.11 specific regression where se_cmd->state_list was being leaked during a fabric WRITE failure, when the fabric releases an associated se_cmd descriptor before I/O submission occurs, and normal fast path callbacks have a chance to call target_remove_from_state_list(). It was manifesting with Poison overwritten messages with iscsi-target once an ImmediateData payload CRC32C failure occured. This bug was originally introduced during v3.11-rc1 with the following commit: commit 0b66818ac6de67a6125ae203272fb76e79b3a20f Author: Nicholas Bellinger Date: Thu Jun 6 01:36:41 2013 -0700 target: Drop unnecessary CMD_T_DEV_ACTIVE check from transport_lun_remove_cmd Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed