[IB] srp: increase max_luns
authorRoland Dreier <rolandd@cisco.com>
Fri, 11 Nov 2005 22:06:01 +0000 (14:06 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 11 Nov 2005 22:06:01 +0000 (14:06 -0800)
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>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h

index 321a3a10e69baabad357caba9a208c3d24a4b8b8..a3645303cb99e16ba814d50daa7a211f008c534b 100644 (file)
@@ -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);
 
index 4fec28a71367f1631981bf046147bbe265c91643..b564f18caf783049ee1b95bfe6c2c8b3be0bd65f 100644 (file)
@@ -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,