Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c8edf0e authored by Arne Redlich's avatar Arne Redlich Committed by Roland Dreier
Browse files

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: default avatarArne Redlich <arne.redlich@xiranet.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent e31353ea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1717,6 +1717,7 @@ static ssize_t srp_create_target(struct class_device *class_dev,
		return -ENOMEM;

	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);