1. 23 Oct, 2003 2 commits
    • Pat LaVarre's avatar
      [PATCH] SG_SET_RESERVED_SIZE negative oops · d0e5f8c0
      Pat LaVarre authored
      I propose the 2.6.0-test8 two-line patch below to teach
      SG_SET_RESERVED_SIZE to reject a negative size, rather than oops-ing.
      d0e5f8c0
    • Mike Anderson's avatar
      [PATCH] Add release function to sd for scsi_disk structure · f7ad2011
      Mike Anderson authored
      This patch removes the delay in calling device_del on the sdev struct
      device during a surprise removal event. Reference counting functions for
      sd's scsi_disk structure where also added to fix issues of unregistering
      when a sd is open.
      
      I have tested this patch using scsi_debug with differnt combinations of
      adds / removes. I mounted both partitioned and un-partitioned sd disks,
      remove the host, and then did a umount. The ref count debug output shows
      the objects staying in place prior to the umount and cleaning up once
      the umount is called.
      
      This patch fixes an issue with a delayed call of device_del on the
      sdev_gendev struct device.
      	- Remove the delayed call to device_del.
      	- Add kobject to sd scsi_disk structure.
      	- Add release function for scsi_disk kobject.
      	- Add get / put functions for scsi_disk and calls to these
      	  functions.
      
       drivers/scsi/scsi.c       |    4 --
       drivers/scsi/scsi_sysfs.c |    3 --
       drivers/scsi/sd.c         |   63 ++++++++++++++++++++++++++++++++++++++++------
       3 files changed, 57 insertions(+), 13 deletions(-)
      f7ad2011
  2. 16 Oct, 2003 3 commits
    • Patrick Mansfield's avatar
      [PATCH] SCSI: limit mode sense usage · 92933518
      Patrick Mansfield authored
      Re-roll of the patch against 2.6.0-test6 to allow overriding or setting of
      mode sense related flags, includes Alan Stern's as95 patch minus his
      scsiglue.c changes.
      
      Moves scsi_devinfo.h for use outside of drivers/scsi, and adds three new
      devinfo flags:
      
      	BLIST_MS_SKIP_PAGE_08
      	BLIST_MS_SKIP_PAGE_3F
      	BLIST_USE_10_BYTE_MS
      
      Adds a per host template flags, and use of it in scsiglue.c. The per host
      value can be overridden by a devinfo entry, the patch does not allow
      scsi_default_dev_flags to override default host values.
      
      USB mass storage and removable media (for testing mode page 3f use) were
      not tested, if you have a USB storage device that still chokes on mode
      sense 3f please give this a spin.
      
       drivers/scsi/scsi_devinfo.c    |   15 +++++++++++----
       drivers/scsi/scsi_devinfo.h    |   17 -----------------
       drivers/scsi/scsi_priv.h       |    3 ++-
       drivers/scsi/scsi_scan.c       |   17 +++++++++++++----
       drivers/scsi/sd.c              |    9 +++++++++
       drivers/usb/storage/scsiglue.c |    8 ++++----
       include/scsi/scsi_device.h     |    2 ++
       include/scsi/scsi_devinfo.h    |   22 ++++++++++++++++++++++
       include/scsi/scsi_host.h       |    6 ++++++
       9 files changed, 69 insertions(+), 30 deletions(-)
      92933518
    • Douglas Gilbert's avatar
      [PATCH] SCSI constants.c · 4201d888
      Douglas Gilbert authored
      However, drivers/scsi/constants.c does know about Report Luns??
      Looks like a merging problem by Andries and me sometime back.
      4201d888
    • Mike Christie's avatar
      [PATCH] fix oops caused when writing to the rescan attribute · af41f9e9
      Mike Christie authored
      If an upper layer driver is not loaded, and you write to a device's 
      rescan attribute you will get an oops. The attached patch fixes this by 
      testing if the device's driver variable is set before accessing it.
      af41f9e9
  3. 14 Oct, 2003 20 commits
  4. 13 Oct, 2003 15 commits