diff options
author | Arne Redlich <arne.redlich@xiranet.com> | 2006-11-15 06:43:00 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-29 18:33:06 -0500 |
commit | 3c8edf0eca2e47340c960b2f27c659c097118ffe (patch) | |
tree | 013c775413fd388bbd56dc4a42cfdd85fae9ee04 /drivers/infiniband | |
parent | e31353eaeca736981ec13b46089d30147342b28b (diff) |
IB/srp: Increase supported CDB size
Set the Scsi_Host's max_cmd_len from 12 (default) to 16 for
SRP. Otherwise scsi_dispatch_cmd() won't pass down certain commands
such as READ CAPACITY 16, required for supporting disks > 2TB.
Signed-off-by: Arne Redlich <arne.redlich@xiranet.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 4b09147f438f..613be2ef9c52 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1716,7 +1716,8 @@ static ssize_t srp_create_target(struct class_device *class_dev, | |||
1716 | if (!target_host) | 1716 | if (!target_host) |
1717 | return -ENOMEM; | 1717 | return -ENOMEM; |
1718 | 1718 | ||
1719 | target_host->max_lun = SRP_MAX_LUN; | 1719 | target_host->max_lun = SRP_MAX_LUN; |
1720 | target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; | ||
1720 | 1721 | ||
1721 | target = host_to_target(target_host); | 1722 | target = host_to_target(target_host); |
1722 | 1723 | ||