代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gazelle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 9fd7ce8ede4f5fcb730137d2593bfb8f470fad56 Mon Sep 17 00:00:00 2001
From: kircher <majun65@huawei.com>
Date: Tue, 21 Feb 2023 17:08:29 +0800
Subject: [PATCH] check and fix wakeup_list when null appears
---
src/lstack/api/lstack_epoll.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/lstack/api/lstack_epoll.c b/src/lstack/api/lstack_epoll.c
index 7860163..da29590 100644
--- a/src/lstack/api/lstack_epoll.c
+++ b/src/lstack/api/lstack_epoll.c
@@ -84,6 +84,17 @@ void wakeup_stack_epoll(struct protocol_stack *stack, bool wakeup_thread_enable)
struct list_node *node, *temp;
list_for_each_safe(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((node - stack->queue_id), struct wakeup_poll, wakeup_list);
if (!wakeup_thread_enable) {
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。