1. 17 2月, 2010 1 次提交
    • R
      [SCSI] fcoe: Only rmmod fcoe.ko if there are no active connections · 6409ea65
      Rob Love 提交于
      Currently we're gracefully tearing down each active connection
      when fcoe.ko is removed. We shouldn't allow the user to destroy
      connections by removing the module. We should force the user to
      destroy each connection and then the module can be removed.
      
      This patch makes it so a refrerence count on the module is taken
      each time a fcoe_interface is created. The reference count
      is dropped when the fcoe_interface is destroyed. This makes it
      so that module_exit() doesn't get called unless all fcoe_interfaces
      have been destroyed.
      
      This patch leaves the removal of interfaces in the module_exit
      routine so that if the user does a 'rmmod -f' we'll clean everything
      up before removing the module.
      
      The module_put line was put before the out_putdev goto line because
      we should only be decrementing the reference count if a
      fcoe_interface is actually destroyed. If we can't find the netdev
      or the fcoe_interface then it's assumed that something else has
      destroyed the fcoe_interface and it would have decremented the
      reference count at that time.
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      6409ea65
  2. 17 12月, 2009 1 次提交
  3. 13 12月, 2009 1 次提交
    • 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
  4. 10 12月, 2009 1 次提交
  5. 05 12月, 2009 24 次提交
  6. 11 9月, 2009 12 次提交