change maximum number of qtfs links to 64
Signed-off-by: liqiang <liqiang64@huawei.com>
This commit is contained in:
parent
42fa65e11e
commit
ce9e8a1bcb
@ -0,0 +1,42 @@
|
||||
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)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: dpu-utilities
|
||||
Summary: openEuler dpu utilities
|
||||
Version: 1.10
|
||||
Release: 3
|
||||
Release: 4
|
||||
License: GPL-2.0
|
||||
Source: https://gitee.com/openeuler/dpu-utilities/repository/archive/v%{version}.tar.gz
|
||||
ExclusiveOS: linux
|
||||
@ -15,6 +15,7 @@ BuildRequires: kernel-devel >= 5.10, gcc, make, json-c-devel, glib2-devel
|
||||
|
||||
Patch1: 0001-refactor-syscall-wrapper-for-aarch64-reduce-the-memo.patch
|
||||
Patch2: 0002-fix-readdir-bug-in-devtmpfs.patch
|
||||
Patch3: 0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch
|
||||
|
||||
%description
|
||||
This package contains the software utilities on dpu.
|
||||
@ -142,6 +143,9 @@ sed -i '/# product cut_conf/a\dpuos kiwi/minios/cfg_dpuos yes' /opt/imageT
|
||||
sed -i '/<repository_rule>/a\dpuos 1 rpm-dir euler_base' /opt/imageTailor/repos/RepositoryRule.conf
|
||||
|
||||
%changelog
|
||||
* Tue Jul 23 2024 liqiang <liqiang64@huawei.com> 1.10-4
|
||||
- Change the maximum number of qtfs links from 16 to 64
|
||||
|
||||
* Wed Jul 10 2024 liqiang <liqiang64@huawei.com> 1.10-3
|
||||
- Fix readdir bug in devtmpfs
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user