[SCSI] add support for variable length extended commands
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 30 Apr 2008 08:27:26 +0000 (11:27 +0300)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 2 May 2008 16:33:25 +0000 (11:33 -0500)
commitdb4742dd8f0aa9125b74f9b2516336a75f3d9106
tree6820b74e8fbfb13c4eee4c8ef8b59a9132320799
parent64a87b244b9297667ca80264aab849a36f494884
[SCSI] add support for variable length extended commands

Add support for variable-length, extended, and vendor specific
CDBs to scsi-ml. It is now possible for initiators and ULD's
to issue these types of commands. LLDs need not change much.
All they need is to raise the .max_cmd_len to the longest command
they support (see iscsi patch).

- clean-up some code paths that did not expect commands to be
  larger than 16, and change cmd_len members' type to short as
  char is not enough.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
block/scsi_ioctl.c
drivers/scsi/constants.c
drivers/scsi/scsi.c
drivers/scsi/scsi_lib.c
include/scsi/scsi.h
include/scsi/scsi_cmnd.h
include/scsi/scsi_host.h