]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Improve EEH recovery time
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Fri, 2 Sep 2016 20:40:03 +0000 (15:40 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 16:46:20 +0000 (12:46 -0400)
commit9390c4654c1dd1428015b707ced0f43e354f6279
tree6b24f9ffc5ba1ebc75847e28c3442b2b76eba11d
parent0d6c9caf968b37c4487d98eeef314eddca27667e
scsi: cxlflash: Improve EEH recovery time

When an EEH occurs during device initialization, the port timeout logic
can cause excessive delays as MMIO reads will fail. Depending on where
they are experienced, these delays can lead to a prolonged reset,
causing an unnecessary triggering of other timeout logic in the SCSI
stack or user applications.

To expedite recovery, the port timeout logic is updated to decay the
timeout at a much faster rate when in the presence of a likely EEH
frozen event.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Acked-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c