target: Prevent TRANSPORT_FREE_CMD_INTR processing in core_tmr_drain_cmd_list
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 11 Oct 2011 06:02:48 +0000 (06:02 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:19:49 +0000 (03:19 +0000)
commitb0e062aec578c756d1aea4b5809294488366a6e8
treebe27087f96cade8c65c4ccb6c5ab53a5c28729d5
parentd050ffb922c782f092234611b9019e95024481ab
target: Prevent TRANSPORT_FREE_CMD_INTR processing in core_tmr_drain_cmd_list

This patch contains a bugfix for TMR LUN_RESET related to TRANSPORT_FREE_CMD_INTR
operation, where core_tmr_drain_cmd_list() will now skip processing for this
case to prevent an ABORT_TASK status from being returned for descriptors that
are already queued up to be released by processing thread context.

Cc: Roland Dreier <roland@purestorage.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
drivers/target/target_core_tmr.c