From 0acf6c0ec24d76d97a13ea12382050d7afbe7b51 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 15 Oct 2015 22:08:47 +0000 Subject: [PATCH] ib_srpt: Increase maximum sg-list length from 128 to 65536 This avoids that the following message appears in the target system kernel log for SRP commands with a scatterlist with e.g. 256 elements: Unable to complete command due to SG IO count limitation git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6546 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- srpt/src/ib_srpt.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 7579ea64c..44f7edfae 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -4090,7 +4090,7 @@ static const struct attribute *srpt_sess_attrs[] = { /* SCST target template for the SRP target implementation. */ static struct scst_tgt_template srpt_template = { .name = DRV_NAME, - .sg_tablesize = SRPT_DEF_SG_TABLESIZE, + .sg_tablesize = 1 << 16, .max_hw_pending_time = RDMA_COMPL_TIMEOUT_S, #if !defined(CONFIG_SCST_PROC) .enable_target = srpt_enable_target, diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index 62e87615d..bbe52c011 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -118,8 +118,6 @@ enum { SRP_LOGIN_RSP_MULTICHAN_TERMINATED = 0x1, SRP_LOGIN_RSP_MULTICHAN_MAINTAINED = 0x2, - SRPT_DEF_SG_TABLESIZE = 128, - MIN_SRPT_SQ_SIZE = 16, DEF_SRPT_SQ_SIZE = 4096, SRPT_RQ_SIZE = 128,