1 Star 0 Fork 32

hantwofish/gazelle_1

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0273-epoll-remove-unnecessary-judgment-code.patch 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
From 0cecec15dad5d4baecceb343e1803eaa9c66de26 Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Tue, 22 Oct 2024 10:14:58 +0800
Subject: [PATCH] epoll: remove unnecessary judgment code
---
src/lstack/api/lstack_epoll.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/lstack/api/lstack_epoll.c b/src/lstack/api/lstack_epoll.c
index ce3d267..acbf393 100644
--- a/src/lstack/api/lstack_epoll.c
+++ b/src/lstack/api/lstack_epoll.c
@@ -122,17 +122,6 @@ void wakeup_stack_epoll(struct protocol_stack *stack)
struct list_node *node, *temp;
list_for_each_node(node, temp, &stack->wakeup_list) {
- /* When temp is NULL, find the tail node in the wekeup_list and connect it to the back of the node */
- if (unlikely(temp == NULL)) {
- struct list_node *nod = &stack->wakeup_list;
- while (nod->prev && nod->prev != node) {
- nod = nod->prev;
- }
- nod->prev = node;
- node->next = nod;
- temp = nod;
- }
-
struct wakeup_poll *wakeup = container_of_uncheck_ptr((node - stack->stack_idx), struct wakeup_poll, wakeup_list);
if (__atomic_load_n(&wakeup->in_wait, __ATOMIC_ACQUIRE)) {
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hantwofish/gazelle_1.git
git@gitee.com:hantwofish/gazelle_1.git
hantwofish
gazelle_1
gazelle_1
master

搜索帮助