• 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
scsi_devinfo.c 17.5 KB