1. 31 12月, 2009 4 次提交
  2. 23 12月, 2009 5 次提交
  3. 17 12月, 2009 1 次提交
  4. 16 12月, 2009 2 次提交
  5. 13 12月, 2009 4 次提交
    • A
      [SCSI] 3w-9xxx fix bug in sgl loading · 53ca3535
      adam radford 提交于
      This small patch fixes a bug in the 3w-9xxx driver where it would load
      an invalid sgl address in the ioctl path even if request length was zero.
      Signed-off-by: NAdam Radford <aradford@gmail.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      53ca3535
    • V
      [SCSI] fcoe, libfc: adds enable/disable for fcoe interface · 55a66d3c
      Vasu Dev 提交于
      This is to allow fcoemon util to enable or disable a fcoe interface
      according to DCB link state change.
      
      Adds sysfs module param enable and disable for this and also
      updates existing other module param description to be consistent
      and more accurate since older description had double "fcoe" word
      with less meaningful netdev reference to user space.
      
      Adds code to ignore redundant fc_lport_enter_reset handling for a
      already disabled fcoe interface by checking LPORT_ST_DISABLED
      or LPORT_ST_LOGO states, this also prevents lport state transition
      on link flap on a disabled interface.
      
      Above changes required lport state transition to get out of
      disabled or logo state on call to fc_fabric_login.
      Signed-off-by: NVasu Dev <vasu.dev@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      55a66d3c
    • C
      [SCSI] libfc: reduce hold time on SCSI host lock · c1ecb90a
      Chris Leech 提交于
      Introduce a new lock to protect the list of fc_fcp_pkt structs in libfc
      instead of using the host lock.  This reduces the contention of this heavily
      used lock, and I see up to a 25% performance gain in CPU bound small I/O
      tests when scaling out across multiple quad-core CPUs.
      
      The big win is in removing the host lock from the completion path
      completely, as it does not need to be held around the call to scsi_done.
      Signed-off-by: NChris Leech <christopher.leech@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      c1ecb90a
    • A
      [SCSI] libfc: remote port gets stuck in restart state without really restarting · 5543c72e
      Abhijeet Joglekar 提交于
      We ran into a scenario where a remote port goes into RESTART state, but
      never gets added to scsi transport. The running vmcore showed the following:
      a) Port was in RESTART state
      b) rdata->event was STOP
      c) no work gets scheduled for the remote work to fc_rport_work
      
      After this point, shut/no-shut of the remote port did not cause the port
      to get re-discovered. The port would move betwen DELETE and RESTART states,
      but the event would always be STOP, no work would get scheduled to
      fc_rport_work and the port would not get added to scsi_transport.
      
      The problem is that rdata->event is not set to NONE after a port is
      restarted. After this point, no more work gets scheduled for the remote port
      since new work is scheduled only if rdata->event is non-NONE. So, the event
      and state keep changing, but fc_rport_work does not get scheduled to actually
      handle the event.
      
      Here's a transition of states that explains the above observation:
      
      ) Port is first in READY State, event is NONE
      
      2) RSCN on shut, port goes to DELETED, event is stop
      
      3) Before fc_rport_work runs, RSCN on no-shut, port goes to RESTART, event is
      still STOP
      
      4) fc_rport_work gets scheduled, removes the port from transport, sees state
      as RESTART, begins the PLOGI state machine, event remains as STOP (event NOT
      changed to NONE, this is the bug)
      
      5) Plogi state machine completes, port state goes to READY, event goes to
      READY, but no work is scheduled since event was STOP (non-NONE) before.
      Fc_rport_work is not scheduled, port remains in READY state, but is not added
      to transport.
      
      Things are broken at this point. Libfc rport is ready, but no transport rport
      created.
      
      6) now a shut causes port state to change to DELETE, event to change to STOP,
      no work gets scheduled
      
      7) no-shut causes port state to change to RESTART, event remains at STOP,
      no work gets scheduled
      
      (6) and (7) now get repeated everytime we do shut/no-shut. No way to get out
      of this state. Fcc reset does not help too.
      
      Only way to get out is to load/unload module.
      
      Fix is to set rdata->event to NONE while processing the STOP/LOGO/FAILED
      events, inside the discovery and rport locks.
      Signed-off-by: NAbhijeet Joglekar <abjoglek@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      5543c72e
  6. 11 12月, 2009 8 次提交
  7. 10 12月, 2009 16 次提交