]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: terminate exchange when command is aborted by LIO
authorAlexei Potashnik <alexei@purestorage.com>
Wed, 13 Sep 2017 08:26:25 +0000 (13:56 +0530)
committerBrian Maly <brian.maly@oracle.com>
Thu, 2 Nov 2017 18:14:13 +0000 (14:14 -0400)
commit56d90c346056a2a78183a0cca9c07df2621a57de
treee9596815dda7c46501e460fce912e2913edb74a2
parent8c87c41d25bc0c6c53ccd0062c4efcd8002afb18
qla2xxx: terminate exchange when command is aborted by LIO

Orabug: 2684419726923029

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: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h
drivers/scsi/qla2xxx/tcm_qla2xxx.c