1. 06 Nov, 2002 1 commit
    • Patrick Mansfield's avatar
      [PATCH] fix 2.5 scsi queue depth setting · 6647da0e
      Patrick Mansfield authored
      This patch fixes queue depth setting of scsi devices.
      
      This is done by pairing shost->slave_attach() calls with
      a scsi_build_commandblocks in the new scsi_slave_attach.
      
      This is a patch aginst linux-scsi.bkbits.net/scsi-for-linus-2.5 after
      applying the last posted hch version of the "Eliminate scsi_host_tmpl_list"
      patch, it still applies with offset to the current scsi-for-linus-2.5.
      
      It also:
      
      Will properly call shost->slave_attach after a scsi_unregister_device()
      followed by a scsi_register_device() - as could happen if you were able to
      rmmod all upper level drivers and then insmod any of them back (only
      possible when not booted on scsi).
      
      Checks for scsi_build_commandblocks() allocation failures.
      
      Sets queue depth even if shost->slave_attach() does not call
      scsi_adjust_queue_depth.
      
      Removes the use of revoke (no drivers are setting it, it was only
      call via the proc scsi remove-single-device interface).
      
      There are at least two problems with sysfs and scsi (one in sysfs, one in
      scsi, I'll try and post more soon ...) so I could not completey test rmmod
      of an adapter or upper level driver without leading to an oops or shutdown
      hang.
      
       hosts.c              |    5 --
       hosts.h              |    6 --
       osst.c               |    9 ++-
       scsi.c               |  118 +++++++++++++++++++++++++++++++--------------------
       scsi.h               |    2
       scsi_mid_low_api.txt |   24 ----------
       scsi_scan.c          |    9 ---
       sd.c                 |   10 +++-
       sg.c                 |   10 ++--
       sr.c                 |    7 ++-
       st.c                 |   11 +++-
       11 files changed, 106 insertions(+), 105 deletions(-)
      
      ===== drivers/scsi/hosts.c 1.23 vs edited =====
      6647da0e
  2. 05 Nov, 2002 7 commits
    • James Bottomley's avatar
      Merge dougg/hch changes in sg.c · 6000edaa
      James Bottomley authored
      6000edaa
    • James Bottomley's avatar
    • Christoph Hellwig's avatar
      [PATCH] scsi device template cleanups · 4ce9191f
      Christoph Hellwig authored
      Now that .init isn't implement anymore we can get rid of it and
      do some more cleanup in the scsi device template:
      
      * remove .blk - unused since 2.5.46
      * remove .dev_noticed, only midlayer user is gone together with
        .init.  remaining instance now driver-private
      * remove .nr_dev and .dev_max - they're purely driver internal
        and at least in sd and sr they'll be completly gone very soon.
      4ce9191f
    • Christoph Hellwig's avatar
      [PATCH] allow registering individual HBAs · c877e091
      Christoph Hellwig authored
      Yes, this is the patch every maintainer of a modern HBA waited for the
      last years </shameless plug>.
      
      With all my recent changes there's no more reason to call scsi_register_host
      except for the intialization it performs to every host found in
      scsi_register.  But a driver can aswell do that at the end of it's
      per-HBA detection routine (i.e. in ->probe for a modern PCI driver), so
      export that code as scsi_add_host to drivers.  Do the same for the
      release path (scsi_remove_host).  Such a new-style driver needs neither
      ->detect or ->release and is in theory hotplug-capable (well, once all
      the races in the scsi midlayer are fixed..)
      c877e091
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/linux-2.5 · 0dc70072
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      0dc70072
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/scsi-misc-2.5 · f1c5d5cd
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      f1c5d5cd
    • Christoph Hellwig's avatar
      [PATCH] get rid of sg_init · d1819213
      Christoph Hellwig authored
      Next step of my ->init removal series.  sg does a few to much wierd
      things with it's global array thay I prefer to leave it to Doug to
      get rid of it (if he wants to), but this patch at least gets rid of
      sg_init.
      
      Move the register_chrdev to init_sg - open properly checks whether
      the device exists so this doesn't cause any harm.  Remove the initial
      allocation of the device array - the resizing code in sg_attach will
      properly take care of it when called the first time.
      
      Tested with a DVD reader/CD writer combination and ide-scsi.
      d1819213
  3. 04 Nov, 2002 13 commits
  4. 03 Nov, 2002 19 commits