Skip to content

Commit

Permalink
IB/srp: Increase supported CDB size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arne Redlich authored and Roland Dreier committed Nov 29, 2006
1 parent e31353e commit 3c8edf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,8 @@ static ssize_t srp_create_target(struct class_device *class_dev,
if (!target_host)
return -ENOMEM;

target_host->max_lun = SRP_MAX_LUN;
target_host->max_lun = SRP_MAX_LUN;
target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb;

target = host_to_target(target_host);

Expand Down

0 comments on commit 3c8edf0

Please sign in to comment.