From: Vitaly Fertman Date: Fri, 12 Feb 2010 15:45:05 +0000 (+0300) Subject: b=16195 handle request size correctly in ptlrpc_add_rqs_to_pool() X-Git-Tag: 1.10.0.37~7 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=0a89f559d5cc67fee51d474e91e4a56a63c9a406 b=16195 handle request size correctly in ptlrpc_add_rqs_to_pool() i=adilger i=johann --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index e02de9c..654394d 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -369,7 +369,7 @@ void ptlrpc_add_rqs_to_pool(struct ptlrpc_request_pool *pool, int num_rq) int i; int size = 1; - while (size < pool->prp_rq_size + SPTLRPC_MAX_PAYLOAD) + while (size < pool->prp_rq_size) size <<= 1; LASSERTF(cfs_list_empty(&pool->prp_req_list) || @@ -417,7 +417,7 @@ ptlrpc_init_rq_pool(int num_rq, int msgsize, cfs_spin_lock_init(&pool->prp_lock); CFS_INIT_LIST_HEAD(&pool->prp_req_list); - pool->prp_rq_size = msgsize; + pool->prp_rq_size = msgsize + SPTLRPC_MAX_PAYLOAD; pool->prp_populate = populate_pool; populate_pool(pool, num_rq); diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index cf28fb9..d3b5408 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10,7 +10,7 @@ set -e ONLY=${ONLY:-"$*"} # bug number for skipped test: 13297 2108 9789 3637 9789 3561 12622 12653 12653 5188 16260 19742 -ALWAYS_EXCEPT=" 27u 42a 42b 42c 42d 45 51d 65a 65e 68b 119d $SANITY_EXCEPT" +ALWAYS_EXCEPT=" 27u 42a 42b 42c 42d 45 51d 65a 65e 68b $SANITY_EXCEPT" # bug number for skipped test: 2108 9789 3637 9789 3561 5188/5749 1443 #ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"27m 42a 42b 42c 42d 45 68 76"} # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!