From ce9e8a1bcba11781e558b76d5623b6326e18f606 Mon Sep 17 00:00:00 2001 From: liqiang Date: Tue, 23 Jul 2024 09:59:57 +0800 Subject: [PATCH] change maximum number of qtfs links to 64 Signed-off-by: liqiang --- ...um-number-of-qtfs-links-from-16-to-6.patch | 42 +++++++++++++++++++ dpu-utilities.spec | 6 ++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch diff --git a/0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch b/0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch new file mode 100644 index 0000000..59dfe0c --- /dev/null +++ b/0003-Change-the-maximum-number-of-qtfs-links-from-16-to-6.patch @@ -0,0 +1,42 @@ +From 682168145e892229f39ed66d9f21dd221782a9f9 Mon Sep 17 00:00:00 2001 +From: liqiang +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 +--- + 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) + diff --git a/dpu-utilities.spec b/dpu-utilities.spec index 7197cd7..5072a12 100644 --- a/dpu-utilities.spec +++ b/dpu-utilities.spec @@ -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 '//a\dpuos 1 rpm-dir euler_base' /opt/imageTailor/repos/RepositoryRule.conf %changelog +* Tue Jul 23 2024 liqiang 1.10-4 +- Change the maximum number of qtfs links from 16 to 64 + * Wed Jul 10 2024 liqiang 1.10-3 - Fix readdir bug in devtmpfs -- Gitee