mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
[IB] srp: increase max_luns
Increase SRP max_luns to 512 to match the kernel's default, since SRP storage targets can have lots of LUNs and the SRP initiator itself doesn't have any particular limit. Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
78b9c0f91c
commit
5f068992a1
@ -1417,6 +1417,8 @@ static ssize_t srp_create_target(struct class_device *class_dev,
|
|||||||
if (!target_host)
|
if (!target_host)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
target_host->max_lun = SRP_MAX_LUN;
|
||||||
|
|
||||||
target = host_to_target(target_host);
|
target = host_to_target(target_host);
|
||||||
memset(target, 0, sizeof *target);
|
memset(target, 0, sizeof *target);
|
||||||
|
|
||||||
|
@ -54,6 +54,7 @@ enum {
|
|||||||
SRP_PORT_REDIRECT = 1,
|
SRP_PORT_REDIRECT = 1,
|
||||||
SRP_DLID_REDIRECT = 2,
|
SRP_DLID_REDIRECT = 2,
|
||||||
|
|
||||||
|
SRP_MAX_LUN = 512,
|
||||||
SRP_MAX_IU_LEN = 256,
|
SRP_MAX_IU_LEN = 256,
|
||||||
|
|
||||||
SRP_RQ_SHIFT = 6,
|
SRP_RQ_SHIFT = 6,
|
||||||
|
Loading…
Reference in New Issue
Block a user