]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: qla2xxx: Fix abort command deadlock due to spinlock
authorQuinn Tran <quinn.tran@cavium.com>
Mon, 4 Dec 2017 22:45:09 +0000 (14:45 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 02:07:06 +0000 (21:07 -0500)
commitb0dcce746b32ac573343ad39cb3dc485030de95e
treec7009f32a810bdec19267eab212afea367d829e6
parent23c645595dab7b414f23639d0a428a07515807df
scsi: qla2xxx: Fix abort command deadlock due to spinlock

Original code acquires hardware_lock to add Abort IOCB onto driver
request queue for processing. However, abort_command() will also acquire
hardware lock to look up sp pointer before issuing abort IOCB command
resulting into a deadlock. This patch safely removes the possible
deadlock scenario by removing extra spinlock.

Fixes: 6eb54715b54bb ("qla2xxx: Added interface to send explicit LOGO.")
Cc: <stable@vger.kernel.org> # 4.10+
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_iocb.c