2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/drivers/s390/scsi
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
..
Makefile [SCSI] zfcp: enhancement of zfcp debug features 2005-09-19 13:03:00 -05:00
zfcp_aux.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_ccw.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_dbf.c [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
zfcp_dbf.h [SCSI] zfcp: fix compiler warning caused by poking inside new semaphore (linux-next) 2008-04-17 12:56:49 -05:00
zfcp_def.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-04-18 11:25:31 -07:00
zfcp_erp.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_ext.h [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_fsf.c [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
zfcp_fsf.h [SCSI] zfcp: Add some statistics provided by the FCP adapter to the sysfs 2008-04-27 12:19:57 -05:00
zfcp_qdio.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_scsi.c [SCSI] zfcp: Add some statistics provided by the FCP adapter to the sysfs 2008-04-27 12:19:57 -05:00
zfcp_sysfs_adapter.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_sysfs_driver.c zfcp: Use device_driver default attribute groups. 2008-01-24 20:40:34 -08:00
zfcp_sysfs_port.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00
zfcp_sysfs_unit.c [SCSI] zfcp: fix 31 bit compile warnings 2008-04-18 11:50:17 -05:00