]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix recursive mailbox timeout
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 27 Sep 2018 05:05:16 +0000 (22:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 28 Sep 2018 00:15:05 +0000 (20:15 -0400)
commitb94cfa25a1d36a084e1d21ca143a16827700a058
treece66cb12eba09071eeb9e67ed276a3bc4d7a8bfb
parent869aaaa39ba54d8602e4064359a1f3a11d612627
scsi: qla2xxx: Fix recursive mailbox timeout

This patch prevents user space mailbox request from doing chip reset if the
mailbox timed out. The chip reset is only reserved for the DPC thread to
ensure all mailbox requests are flushed properly. The DPC thread is
responsible for the flushing all MBs and chip reset.

Fixes: 87088d8825b2 ("scsi: qla2xxx: Flush mailbox commands on chip reset")
Cc: <stable@ger.kernel.org>
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c