diff options
author | Quinn Tran | 2023-08-21 18:30:38 +0530 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-09-19 12:27:55 +0200 |
commit | 974887e1d6890a77965233aabb597b085cfbc02e (patch) | |
tree | c1f61ff8defe7fbbe51329649b3c5e15af97aea1 /drivers/scsi/arm/fas216.h | |
parent | 98643561d853e313a522ed764aff58440a914e9c (diff) |
scsi: qla2xxx: Flush mailbox commands on chip reset
commit 6d0b65569c0a10b27c49bacd8d25bcd406003533 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/arm/fas216.h')
0 files changed, 0 insertions, 0 deletions