1. 05 12月, 2009 31 次提交
  2. 03 10月, 2009 1 次提交
  3. 02 10月, 2009 3 次提交
  4. 21 9月, 2009 1 次提交
  5. 12 9月, 2009 2 次提交
  6. 11 9月, 2009 2 次提交
    • J
      [SCSI] libfc: send GPN_ID in reaction to single-port RSCNs. · 2ab7e1ec
      Joe Eykholt 提交于
      When an RSCN indicates changes to individual remote ports,
      don't blindly log them out and then back in.  Instead, determine
      whether they're still in the directory, by doing GPN_ID.
      
      If that is successful, call login, which will send ADISC and reverify,
      otherwise, call logoff.  Perhaps we should just delete the rport,
      not send LOGO, but it seems safer.
      
      Also, fix a possible issue where if a mix of records in the RSCN
      cause us to queue disc_ports for disc_single and then we decide
      to do full rediscovery, we leak memory for those disc_ports queued.
      
      So, go through the list of disc_ports even if doing full discovery.
      Free the disc_ports in any case.  If any of the disc_single() calls
      return error, do a full discovery.
      
      The ability to fill in GPN_ID requests was added to fc_ct_fill().
      For this, it needs the FC_ID to be passed in as an arg.
      The did parameter for fc_elsct_send() is used for that, since the
      actual D_DID will always be 0xfffffc for all CT requests so far.
      Signed-off-by: NJoe Eykholt <jeykholt@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      2ab7e1ec
    • J
      [SCSI] libfc: use ADISC to verify rport login state · 370c3bd0
      Joe Eykholt 提交于
      When rport_login is called on an rport that is already thought
      to be logged in, use ADISC.  If that fails, redo PLOGI.
      This is less disruptive after fabric changes that don't affect
      the state of the target.
      
      Implement the sending of ADISC via fc_els_fill.
      
      Add ADISC state to the rport state machine.  This is entered from READY
      and returns to READY after successful completion.  If it fails, the rport
      is either logged off and deleted or re-does PLOGI.
      Signed-off-by: NJoe Eykholt <jeykholt@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      370c3bd0