From 040eca67f8d5422b0099d1b70594b5eb40a0f9ef Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Tue, 20 Mar 2018 11:06:47 +0100 Subject: [PATCH] LU-10826 ptlrpc: fix test_req_buffer_pressure behavior In 2nd patch for LU-9372, to allow limiting number of rqbd-buffers, a wrong and unnecessary test had been added to enhance test_req_buffer_pressure feature. This patch fixes this issue by removing such test. Signed-off-by: Bruno Faccini Change-Id: I8f1298fabbbc4e0d92078dcf49192ff4f0fbc907 Reviewed-on: https://review.whamcloud.com/31690 Tested-by: Jenkins Reviewed-by: Wang Shilong Reviewed-by: Li Dongyang Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- lustre/ptlrpc/service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 4cbab10..2930f85 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -140,8 +140,7 @@ ptlrpc_grow_req_bufs(struct ptlrpc_service_part *svcpt, int post) for (i = 0; i < svc->srv_nbuf_per_group; i++) { /* NB: another thread might have recycled enough rqbds, we * need to make sure it wouldn't over-allocate, see LU-1212. */ - if (test_req_buffer_pressure || - svcpt->scp_nrqbds_posted >= svc->srv_nbuf_per_group || + if (svcpt->scp_nrqbds_posted >= svc->srv_nbuf_per_group || (svc->srv_nrqbds_max != 0 && svcpt->scp_nrqbds_total > svc->srv_nrqbds_max)) break; -- 1.8.3.1