summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorQuinn Tran <qutran@marvell.com>2023-08-21 15:00:38 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2023-08-21 23:45:14 +0200
commit6d0b65569c0a10b27c49bacd8d25bcd406003533 (patch)
treee653df11e3ede30081777dfdea3edb4b3ddc38eb /drivers/ata
parentscsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe (diff)
downloadlinux-6d0b65569c0a10b27c49bacd8d25bcd406003533.tar.xz
linux-6d0b65569c0a10b27c49bacd8d25bcd406003533.zip
scsi: qla2xxx: Flush mailbox commands on chip reset
Fix race condition between Interrupt thread and Chip reset thread in trying to flush the same mailbox. With the race condition, the "ha->mbx_intr_comp" will get an extra complete() call. The extra complete call create erroneous mailbox timeout condition when the next mailbox is sent where the mailbox call does not wait for interrupt to arrive. Instead, it advances without waiting. Add lock protection around the check for mailbox completion. Cc: stable@vger.kernel.org Fixes: b2000805a975 ("scsi: qla2xxx: Flush mailbox commands on chip reset") Signed-off-by: Quinn Tran <quinn.tran@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20230821130045.34850-3-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions