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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:32 +0000 (09:42 -0800)
commitbe9f40a76784d667ef3743cd756f1cec4ea4e714
tree8f96b62641d2f221acaf38edf93a26108f683c87
parent6f47552250e7d3a1bab3e75cc9e36015a7fa93f9
target: Prevent TRANSPORT_FREE_CMD_INTR processing in core_tmr_drain_cmd_list

commit b0e062aec578c756d1aea4b5809294488366a6e8 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/target/target_core_tmr.c