43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From 682168145e892229f39ed66d9f21dd221782a9f9 Mon Sep 17 00:00:00 2001
|
|
From: liqiang <liqiang64@huawei.com>
|
|
Date: Fri, 19 Jul 2024 11:55:23 +0000
|
|
Subject: [PATCH] Change the maximum number of qtfs links from 16 to 64
|
|
|
|
Signed-off-by: liqiang <liqiang64@huawei.com>
|
|
---
|
|
qtfs/include/comm.h | 2 +-
|
|
qtfs/qtfs_common/conn.c | 4 ++++
|
|
2 files changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/qtfs/include/comm.h b/qtfs/include/comm.h
|
|
index faa8ce3..b2c4c97 100644
|
|
--- a/qtfs/include/comm.h
|
|
+++ b/qtfs/include/comm.h
|
|
@@ -73,7 +73,7 @@ enum {
|
|
#define QTINFO_MAX_EVENT_TYPE 36 // look qtreq_type at req.h
|
|
#define QTFS_FUNCTION_LEN 64
|
|
|
|
-#define QTFS_MAX_THREADS 16
|
|
+#define QTFS_MAX_THREADS 64
|
|
#define QTFS_LOGLEVEL_STRLEN 6
|
|
|
|
struct qtfs_server_userp_s {
|
|
diff --git a/qtfs/qtfs_common/conn.c b/qtfs/qtfs_common/conn.c
|
|
index fa3c1b9..5f080cd 100644
|
|
--- a/qtfs/qtfs_common/conn.c
|
|
+++ b/qtfs/qtfs_common/conn.c
|
|
@@ -667,6 +667,10 @@ static void parse_param(void)
|
|
int qtfs_conn_param_init(void)
|
|
{
|
|
#ifdef QTFS_CLIENT
|
|
+ if (qtfs_conn_max_conn > QTFS_MAX_THREADS) {
|
|
+ qtfs_err("QTFS parameter qtfs_conn_max_conn(%d) is invalid, max conn:%d", qtfs_conn_max_conn, QTFS_MAX_THREADS);
|
|
+ return -1;
|
|
+ }
|
|
qtfs_fifo_pvar_cache = kmem_cache_create("qtfs_fifo_pvar",
|
|
sizeof(struct qtfs_conn_var_s),
|
|
0,
|
|
--
|
|
2.37.1 (Apple Git-137.1)
|
|
|