linux/drivers/usb/storage
Boaz Harrosh 64a87b244b [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer
- struct scsi_cmnd had a 16 bytes command buffer of its own.
   This is an unnecessary duplication and copy of request's
   cmd. It is probably left overs from the time that scsi_cmnd
   could function without a request attached. So clean that up.

 - Once above is done, few places, apart from scsi-ml, needed
   adjustments due to changing the data type of scsi_cmnd->cmnd.

 - Lots of drivers still use MAX_COMMAND_SIZE. So I have left
   that #define but equate it to BLK_MAX_CDB. The way I see it
   and is reflected in the patch below is.
   MAX_COMMAND_SIZE - means: The longest fixed-length (*) SCSI CDB
                      as per the SCSI standard and is not related
                      to the implementation.
   BLK_MAX_CDB.     - The allocated space at the request level

 - I have audit all ISA drivers and made sure none use ->cmnd in a DMA
   Operation. Same audit was done by Andi Kleen.

(*)fixed-length here means commands that their size can be determined
   by their opcode and the CDB does not carry a length specifier, (unlike
   the VARIABLE_LENGTH_CMD(0x7f) command). This is actually not exactly
   true and the SCSI standard also defines extended commands and
   vendor specific commands that can be bigger than 16 bytes. The kernel
   will support these using the same infrastructure used for VARLEN CDB's.
   So in effect MAX_COMMAND_SIZE means the maximum size command
   scsi-ml supports without specifying a cmd_len by ULD's

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-05-02 10:18:22 -05:00
..
alauda.c USB storage: sg chaining support 2007-10-16 11:20:59 +02:00
alauda.h
cypress_atacb.c [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
cypress_atacb.h USB: mass storage: emulation of sat scsi_pass_thru with ATACB 2008-04-24 21:16:42 -07:00
datafab.c USB storage: sg chaining support 2007-10-16 11:20:59 +02:00
datafab.h
debug.c
debug.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dpcm.c USB: drivers/usb/storage/dpcm.c whitespace cleanup 2007-07-19 17:46:08 -07:00
dpcm.h
freecom.c [SCSI] usb: freecom & sddr09 - convert to accessors and !use_sg cleanup 2008-01-11 18:22:36 -06:00
freecom.h
initializers.c USB: usb/storage/initializers.c: fix signedness difference 2008-02-01 14:34:57 -08:00
initializers.h USB: usb-storage: Initialize Huawei E220 properly 2007-10-12 14:55:24 -07:00
isd200.c [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
isd200.h
jumpshot.c USB storage: sg chaining support 2007-10-16 11:20:59 +02:00
jumpshot.h
karma.c USB Storage: add rio karma eject support 2006-09-27 11:58:54 -07:00
karma.h USB Storage: add rio karma eject support 2006-09-27 11:58:54 -07:00
Kconfig USB: Remove EXPERIMENTAL designation from USB storage Kconfig entries. 2008-04-24 21:16:42 -07:00
libusual.c USB: libusual: locking cleanup 2008-04-24 21:16:33 -07:00
Makefile USB: mass storage: emulation of sat scsi_pass_thru with ATACB 2008-04-24 21:16:42 -07:00
onetouch.c USB: storage: onetouch: clean up urb->status usage 2007-07-19 17:46:06 -07:00
onetouch.h
protocol.c usb-storage: update earlier scatter-gather bug fix 2008-03-04 14:57:43 -08:00
protocol.h USB storage: sg chaining support 2007-10-16 11:20:59 +02:00
scsiglue.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
scsiglue.h
sddr09.c [SCSI] usb: freecom & sddr09 - convert to accessors and !use_sg cleanup 2008-01-11 18:22:36 -06:00
sddr09.h
sddr55.c USB: drivers/usb/storage/sddr55.c: fix uninitialized var warnings 2008-03-10 16:42:25 -07:00
sddr55.h
shuttle_usbat.c [SCSI] usb: shuttle_usbat - convert to accessors and !use_sg code path removal 2008-01-11 18:22:37 -06:00
shuttle_usbat.h [PATCH] USB: shuttle_usbat: Hardcode detection of HP CDRW devices 2006-06-21 15:04:10 -07:00
transport.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
transport.h [SCSI] usb: transport - convert to accessors and !use_sg code path removal 2008-01-11 18:22:38 -06:00
unusual_devs.h USB: mass storage: emulation of sat scsi_pass_thru with ATACB 2008-04-24 21:16:42 -07:00
usb.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
usb.h usb-storage: fix bugs in the disconnect pathway 2007-08-22 14:27:52 -07:00