qla2xxx: terminate exchange when command is aborted by LIO
authorAlexei Potashnik <alexei@purestorage.com>
Tue, 14 Jul 2015 20:00:49 +0000 (16:00 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Feb 2016 05:04:22 +0000 (00:04 -0500)
commitce4f0721444eea05c31c072981a165750b8b243b
tree334d5f5fed76f09164409d95db85ea3420bc0c52
parenteaaecc5e28b49dc00c4c36f1f5fd1acf1f4f4be1
qla2xxx: terminate exchange when command is aborted by LIO

[ Upstream commit 7359df25a53386dd33c223672bbd12cb49d0ce4f ]

The newly introduced aborted_task TFO callback has to terminate
exchange with QLogic driver, since command is being deleted and
no status will be queued to the driver at a later point.

This patch also moves the burden of releasing one cmd refcount to
the aborted_task handler.

Changed iSCSI aborted_task logic to satisfy the above requirement.

Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: Alexei Potashnik <alexei@purestorage.com>
Acked-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h
drivers/scsi/qla2xxx/tcm_qla2xxx.c