1. 17 9月, 2010 1 次提交
    • C
      [SCSI] zfcp: Allow running unit/LUN shutdown without acquiring reference · fdbd1c5e
      Christof Schmitt 提交于
      With the change for the LUN data to be part of the scsi_device, the
      slave_destroy callback will be the final call to the
      zfcp_erp_unit_shutdown function. The erp tries to acquire a reference
      to run the action asynchronously and fail, if it cannot get the
      reference. But calling scsi_device_get from slave_destroy will fail,
      because the scsi_device is already in the state SDEV_DEL.
      
      Introduce a new call into the zfcp erp to solve this: The function
      zfcp_erp_unit_shutdown_wait will close the LUN and wait for the erp to
      finish without acquiring an additional reference. The wait allows to
      omit the reference; the caller waiting for the erp to finish already
      has a reference that holds the struct in place.
      Reviewed-by: NSwen Schillig <swen@vnet.ibm.com>
      Signed-off-by: NChristof Schmitt <christof.schmitt@de.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      fdbd1c5e
  2. 28 7月, 2010 5 次提交
  3. 22 7月, 2010 1 次提交
  4. 03 5月, 2010 1 次提交
  5. 18 2月, 2010 3 次提交
  6. 05 12月, 2009 4 次提交
  7. 22 10月, 2009 1 次提交
    • C
      [SCSI] zfcp: Handle WWPN mismatch in PLOGI payload · 934aeb58
      Christof Schmitt 提交于
      For ports, zfcp gets the DID from the FC nameserver and tries to open
      the port. If the open succeeds, zfcp compares the WWPN from the
      nameserver with the WWPN in the PLOGI payload. In case of a mismatch,
      zfcp assumes that the DID of the port just changed and we opened the
      wrong port. This means that zfcp has to forget the DID, lookup the DID
      again and retry.
      
      This error case had a problem that zfcp forgets the DID, but never
      looks up a new one, stalling the ERP in this case. Fix this by
      triggering the DID lookup and properly exit from the ERP. The DID
      lookup will trigger a new ERP action.
      
      Also ensure when trying to open the port again with the new DID, first
      close the open port, even in the NOESC case.
      Signed-off-by: NChristof Schmitt <christof.schmitt@de.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      934aeb58
  8. 05 9月, 2009 8 次提交
  9. 30 7月, 2009 4 次提交
  10. 13 6月, 2009 1 次提交
  11. 24 5月, 2009 2 次提交
  12. 27 4月, 2009 3 次提交
  13. 13 3月, 2009 6 次提交