1. 01 3月, 2012 2 次提交
    • D
      [SCSI] isci: fix interpretation of "hard" reset · 92776991
      Dan Williams 提交于
      A hard reset to isci in the direct-attached case is one where the driver
      internally manages debouncing the link.  In the sas-expander-attached
      case a hard reset is one that clears affiliations.  The driver should
      not be prematurely dropping affiliations at run time, that decision (to
      force expander hard resets to ata devices) is left to userspace to
      manage.  So, arrange for I_T_nexus resets to be sas-link-resets in the
      expander-attached case and isci-hard-resets in the direct-attached case.
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      92776991
    • D
      [SCSI] libsas: fix sas_find_local_phy(), take phy references · f41a0c44
      Dan Williams 提交于
      In the direct-attached case this routine returns the phy on which this
      device was first discovered.  Which is broken if we want to support
      wide-targets, as this phy reference can become stale even though the
      port is still active.
      
      In the expander-attached case this routine tries to lookup the phy by
      scanning the attached sas addresses of the parent expander, and BUG_ONs
      if it can't find it.  However since eh and the libsas workqueue run
      independently we can still be attempting device recovery via eh after
      libsas has recorded the device as detached.  This is even easier to hit
      now that eh is blocked while device domain rediscovery takes place, and
      that libata is fed more timed out commands increasing the chances that
      it will try to recover the ata device.
      
      Arrange for dev->phy to always point to a last known good phy, it may be
      stale after the port is torn down, but it will catch up for wide port
      reconfigurations, and never be NULL.
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      f41a0c44
  2. 20 2月, 2012 1 次提交
  3. 16 1月, 2012 1 次提交
  4. 31 10月, 2011 8 次提交
  5. 27 8月, 2011 1 次提交
  6. 04 7月, 2011 1 次提交
  7. 03 7月, 2011 26 次提交