!56 fix event misalignment problem
From: @liqiang9102 Reviewed-by: @minknov Signed-off-by: @minknov
This commit is contained in:
commit
396e9ad70f
@ -0,0 +1,29 @@
|
||||
From 6484415ecbd4062c49a2c4b8d421a9fc9dd4250a Mon Sep 17 00:00:00 2001
|
||||
From: liqiang <liqiang64@huawei.com>
|
||||
Date: Sat, 16 Dec 2023 11:22:21 +0800
|
||||
Subject: [PATCH] fix event misalignment caused by multi-thread scheduling
|
||||
|
||||
Signed-off-by: liqiang <liqiang64@huawei.com>
|
||||
---
|
||||
qtfs/qtfs_server/server_fifo.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/qtfs/qtfs_server/server_fifo.c b/qtfs/qtfs_server/server_fifo.c
|
||||
index 88d3cde..1839a88 100644
|
||||
--- a/qtfs/qtfs_server/server_fifo.c
|
||||
+++ b/qtfs/qtfs_server/server_fifo.c
|
||||
@@ -676,10 +676,9 @@ int fifo_proc_open_req(struct fifo_event_t *evt)
|
||||
}
|
||||
evt->priv = oarg;
|
||||
oarg->t = t;
|
||||
- pthread_create(t, &attr, fifo_open_thread, evt);
|
||||
-
|
||||
// 临时状态机,暂时不知道是读是写
|
||||
evt->handler = fifo_proc_unknown;
|
||||
+ pthread_create(t, &attr, fifo_open_thread, evt);
|
||||
|
||||
log_info("Start new fifo open thread head:%u, len:%d", head.type, head.len);
|
||||
return FIFO_RET_OK;
|
||||
--
|
||||
2.37.1 (Apple Git-137.1)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: dpu-utilities
|
||||
Summary: openEuler dpu utilities
|
||||
Version: 1.6
|
||||
Release: 4
|
||||
Release: 5
|
||||
License: GPL-2.0
|
||||
Source: https://gitee.com/openeuler/dpu-utilities/repository/archive/v%{version}.tar.gz
|
||||
ExclusiveOS: linux
|
||||
@ -26,6 +26,7 @@ Patch10: 0010-bugfix-unix-socket-connection-refuse-after-chmod-mod.patch
|
||||
Patch11: 0011-filter-af-unix-before-whitelist-check.patch
|
||||
Patch12: 0012-not-updata-iattr-invalid-data-to-inode.patch
|
||||
Patch13: 0013-bugfix-fifo-suspend-and-fd-leak.patch
|
||||
Patch14: 0014-fix-event-misalignment-caused-by-multi-thread-schedu.patch
|
||||
|
||||
%description
|
||||
This package contains the software utilities on dpu.
|
||||
@ -153,6 +154,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
|
||||
* Sat Dec 16 2023 liqiang <liqiang64@huawei.com> 1.6-5
|
||||
- fix event misalignment problem
|
||||
|
||||
* Thu Dec 14 2023 liqiang <liqiang64@huawei.com> 1.6-4
|
||||
- Fix suspend and fd leak of fifo
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user