Skip to content
  1. Sep 20, 2005
  2. Sep 19, 2005
    • James Bottomley's avatar
      [SCSI] Fix thread termination for the SCSI error handle · 3ed7a470
      James Bottomley authored
      
      
      From: 	Alan Stern <stern@rowland.harvard.edu>
      
      This patch (as561) fixes the error handler's thread-exit code.  The
      kthread_stop call won't wake the thread from a down_interruptible, so
      the patch gets rid of the semaphore and simply does
      
              set_current_state(TASK_INTERRUPTIBLE);
      
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      
      Modified to simplify the termination loop and correct the sleep condition.
      
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      3ed7a470
    • James Bottomley's avatar
      [SCSI] fix oops on usb storage device disconnect · 939647ee
      James Bottomley authored
      
      
      We fix the oops by enforcing the host state model.  There have also
      been two extra states added: SHOST_CANCEL_RECOVERY and
      SHOST_DEL_RECOVERY so we can take the model through host removal while
      the recovery thread is active.
      
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      939647ee
    • Alan Stern's avatar
      [SCSI] SCSI scanning and removal fixes · a64358db
      Alan Stern authored
      
      
      This patch (as545) fixes the list traversals in __scsi_remove_target and
      scsi_forget_host.  In each case the existing code list_for_each_entry_safe
      in an _unsafe_ manner, because the list was not protected from outside
      modification while the iteration was running.
      
      The new scsi_forget_host routine takes the moderately controversial step
      of iterating over devices for removal rather than iterating over targets.
      This makes more sense to me because the current scheme treats targets as
      second-class citizens, created and removed on demand, rather than as
      objects corresponding to actual hardware.  (Also I couldn't figure out any
      safe way to iterate over the target list, since it's not so easy to tell
      when a target has already been removed.)
      
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
      a64358db
  3. Sep 18, 2005
  4. Sep 16, 2005
  5. Sep 15, 2005
  6. Sep 14, 2005
  7. Sep 13, 2005