Skip to content

Commit

Permalink
[IB] srp: increase max_luns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier committed Nov 11, 2005
1 parent 78b9c0f commit 5f06899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,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_to_target(target_host);
memset(target, 0, sizeof *target);

Expand Down
1 change: 1 addition & 0 deletions drivers/infiniband/ulp/srp/ib_srp.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ enum {
SRP_PORT_REDIRECT = 1,
SRP_DLID_REDIRECT = 2,

SRP_MAX_LUN = 512,
SRP_MAX_IU_LEN = 256,

SRP_RQ_SHIFT = 6,
Expand Down

0 comments on commit 5f06899

Please sign in to comment.