35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
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
|
|
|