diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2008-04-30 04:27:26 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-05-02 12:33:25 -0400 |
commit | db4742dd8f0aa9125b74f9b2516336a75f3d9106 (patch) | |
tree | 6820b74e8fbfb13c4eee4c8ef8b59a9132320799 /include/scsi/scsi_cmnd.h | |
parent | 64a87b244b9297667ca80264aab849a36f494884 (diff) |
[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>
Diffstat (limited to 'include/scsi/scsi_cmnd.h')
-rw-r--r-- | include/scsi/scsi_cmnd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 7ed883c8e48..3e46dfae819 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h | |||
@@ -78,7 +78,7 @@ struct scsi_cmnd { | |||
78 | int allowed; | 78 | int allowed; |
79 | int timeout_per_command; | 79 | int timeout_per_command; |
80 | 80 | ||
81 | unsigned char cmd_len; | 81 | unsigned short cmd_len; |
82 | enum dma_data_direction sc_data_direction; | 82 | enum dma_data_direction sc_data_direction; |
83 | 83 | ||
84 | /* These elements define the operation we are about to perform */ | 84 | /* These elements define the operation we are about to perform */ |