qla2xxx: Fix TMR ABORT interaction issue between qla2xxx and TCM
authorQuinn Tran <quinn.tran@qlogic.com>
Tue, 8 Dec 2015 00:48:57 +0000 (19:48 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 30 Jan 2016 03:30:00 +0000 (19:30 -0800)
commita07100e00ac42a4474530ce17b4978c9e06bde55
treea2f1bff160a62463533cf177c3b126737b46dbe5
parentdacb58221805bb72ec46a73826c9e59a587d7d68
qla2xxx: Fix TMR ABORT interaction issue between qla2xxx and TCM

During lun reset, TMR thread from TCM would issue abort
to qla driver.  At abort time, each command is in different
state.  Depending on the state, qla will use the TMR thread
to trigger a command free(cmd_kref--) if command is not
down at firmware.

Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h
drivers/scsi/qla2xxx/tcm_qla2xxx.c