mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [git patch review 1/3] [IB] srp: increase max_luns
@ 2005-11-15  8:38 Roland Dreier
  2005-11-15  8:38 ` [git patch review 2/3] [IB] srp: don't post receive if no send buf available Roland Dreier
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Dreier @ 2005-11-15  8:38 UTC (permalink / raw)
  To: linux-kernel, openib-general

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 |    2 ++
 drivers/infiniband/ulp/srp/ib_srp.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

applies-to: 84a581820bff0fa9830f18138da02d929e4edcb9
5f068992a1bccda5574b4f6d33458ef806686d7f
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 321a3a1..a364530 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1417,6 +1417,8 @@ static ssize_t srp_create_target(struct 
 	if (!target_host)
 		return -ENOMEM;
 
+	target_host->max_lun = SRP_MAX_LUN;
+
 	target = host_to_target(target_host);
 	memset(target, 0, sizeof *target);
 
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h
index 4fec28a..b564f18 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.h
+++ b/drivers/infiniband/ulp/srp/ib_srp.h
@@ -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,
---
0.99.9g

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-15  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-15  8:38 [git patch review 1/3] [IB] srp: increase max_luns Roland Dreier
2005-11-15  8:38 ` [git patch review 2/3] [IB] srp: don't post receive if no send buf available Roland Dreier
2005-11-15  8:38   ` [git patch review 3/3] [IB] mthca: don't disable RDMA writes if no responder resources Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome