1. 02 May, 2008 3 commits
    • Boaz Harrosh's avatar
      [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer · 64a87b24
      Boaz Harrosh authored
       - 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: default avatarBoaz Harrosh <bharrosh@panasas.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      64a87b24
    • FUJITA Tomonori's avatar
      [SCSI] bsg: add large command support · 9f5de6b1
      FUJITA Tomonori authored
      This enables bsg to handle the request length larger than BLK_MAX_CDB
      (mainly for the variable length CDB format).
      Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Acked-by: default avatarJens Axboe <jens.axboe@oracle.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      9f5de6b1
    • Mark Salyzyn's avatar
      [SCSI] aacraid: Fix down_interruptible() to check the return value correctly · 0462590e
      Mark Salyzyn authored
      On Apr 21, 2008, at 8:42 PM, Yinghai Lu wrote:
      > bisected to:
      >
      > commit e6990c64
      > Author: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
      > Date:   Mon Apr 14 14:20:16 2008 -0400
      >
      >    [SCSI] aacraid: Fix down_interruptible() to check the return value
      
      The return value for down_interruptible was incorrectly checked!
      updated patch enclosed.
      Signed-off-by: default avatarMark Salyzyn <aacraid@adaptec.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      0462590e
  2. 30 Apr, 2008 5 commits
  3. 27 Apr, 2008 32 commits