]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
scsi: cxlflash: Improve EEH recovery time
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Mon, 27 Feb 2017 20:46:34 +0000 (14:46 -0600)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:20:20 +0000 (09:20 +0100)
commitaff62f8d7292db27be528694bd0abc42bfe2fa9c
tree197fed5902c6a762889d21baf44e6aaa9849e78c
parentde42c1000a14bbc1402c0c7a3bad4da90f6337b4
scsi: cxlflash: Improve EEH recovery time

BugLink: http://bugs.launchpad.net/bugs/1623750
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>
(cherry picked from commit 05dab43230fdc0d14ca885b473a2740fe017ecb1)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Marcelo Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/scsi/cxlflash/main.c