1. 04 Dec, 2009 39 commits
  2. 29 Oct, 2009 1 commit
    • Michael Reed's avatar
      [SCSI] scsi_transport_fc: remove invalid BUG_ON · 8798a694
      Michael Reed authored
      I was doing some large lun count testing with 2.6.31 and hit
      a BUG_ON() in fc_timeout_deleted_rport(), and it seems like it
      should have been just a matter of time before someone did.
      
      It seems invalid to set port_state under lock, then expect it to
      remain set after releasing the lock.  Another thread called
      fc_remote_port_add() when the lock was released, changing the
      port_state.
      
      This patch removes the BUG_ON and moves the test of the
      port_state to inside the host_lock.  It's been running for
      several weeks now with no ill effect.
      Signed-off-by: default avatarMichael Reed <mdr@sgi.com>
      Acked-by: default avatarJames Smart <james.smart@emulex.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
      8798a694