diff mbox series

[24/33] lustre: statahead: using try lock for batched RPCs

Message ID 20250202204633.1148872-25-jsimmons@infradead.org (mailing list archive)
State New
Headers show
Series lustre: sync to OpenSFS branch May 31, 2023 | expand

Commit Message

James Simmons Feb. 2, 2025, 8:46 p.m. UTC
From: Qian Yingjin <qian@ddn.com>

In this patch, we set "statahead_batch_max" with 64 to enable
batched statahead by default.

WC-bug-id: https://jira.whamcloud.com/browse/LU-15562
Lustre-commit; 58549f9780418d548 ("LU-15562 statahead: using try lock for batched RPCs")
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46549
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 fs/lustre/llite/llite_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/lustre/llite/llite_internal.h b/fs/lustre/llite/llite_internal.h
index 42f991ea9a7e..93743d27739c 100644
--- a/fs/lustre/llite/llite_internal.h
+++ b/fs/lustre/llite/llite_internal.h
@@ -1518,7 +1518,7 @@  void ll_ra_stats_inc(struct inode *inode, enum ra_stat which);
 /* statahead.c */
 
 #define LL_SA_RPC_MIN		8
-#define LL_SA_RPC_DEF		32
+#define LL_SA_RPC_DEF		128
 #define LL_SA_RPC_MAX		2048
 
 /* XXX: If want to support more concurrent statahead instances,
@@ -1530,7 +1530,7 @@  void ll_ra_stats_inc(struct inode *inode, enum ra_stat which);
 #define LL_SA_RUNNING_DEF	16
 
 #define LL_SA_BATCH_MAX		1024
-#define LL_SA_BATCH_DEF		0
+#define LL_SA_BATCH_DEF		64
 
 #define LL_SA_CACHE_BIT		5
 #define LL_SA_CACHE_SIZE	BIT(LL_SA_CACHE_BIT)