12 Star 2 Fork 17

src-openEuler/dpu-utilities

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dpu-utilities.git
git@gitee.com:src-openeuler/dpu-utilities.git
src-openeuler
dpu-utilities
dpu-utilities
master

搜索帮助