1. 14 Sep, 2016 2 commits
    • Matthew R. Ochs's avatar
      scsi: cxlflash: Improve EEH recovery time · 05dab432
      Matthew R. Ochs authored
      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: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
      Acked-by: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      05dab432
    • Matthew R. Ochs's avatar
      scsi: cxlflash: Fix to avoid EEH and host reset collisions · 1d3324c3
      Matthew R. Ochs authored
      The EEH reset handler is ignorant to the current state of the driver
      when processing a frozen event and initiating a device reset. This can
      be an issue if an EEH event occurs while a user or stack initiated reset
      is executing. More specifically, if an EEH occurs while the SCSI host
      reset handler is active, the reset initiated by the EEH thread will
      likely collide with the host reset thread. This can leave the device in
      an inconsistent state, or worse, cause a system crash.
      
      As a remedy, the EEH handler is updated to evaluate the device state and
      take appropriate action (proceed, wait, or disconnect host). The host
      reset handler is also updated to handle situations where an EEH occurred
      during a host reset. In such situations, the host reset handler will
      delay reporting back a success to give the EEH reset an opportunity to
      complete.
      Signed-off-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
      Acked-by: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      1d3324c3
  2. 09 Sep, 2016 7 commits
  3. 04 Sep, 2016 6 commits
  4. 02 Sep, 2016 19 commits
  5. 31 Aug, 2016 6 commits