refactor(wait_queue): 重构等待队列机制,引入Waiter/Waker模式#1452
Merged
fslongjin merged 4 commits intoDragonOS-Community:masterfrom Dec 10, 2025
Merged
refactor(wait_queue): 重构等待队列机制,引入Waiter/Waker模式#1452fslongjin merged 4 commits intoDragonOS-Community:masterfrom
fslongjin merged 4 commits intoDragonOS-Community:masterfrom
Conversation
Member
fslongjin
commented
Dec 9, 2025
- 重构WaitQueue,引入Waiter/Waker模式避免唤醒丢失
- 统一等待接口,提供wait_event_interruptible/uninterruptible方法
- 重构futex、epoll、eventfd、semaphore、completion等模块使用新等待队列
- 优化进程等待子进程退出逻辑,使用新等待队列接口
- 添加等待队列设计文档说明新机制
- 重构WaitQueue,引入Waiter/Waker模式避免唤醒丢失 - 统一等待接口,提供wait_event_interruptible/uninterruptible方法 - 重构futex、epoll、eventfd、semaphore、completion等模块使用新等待队列 - 优化进程等待子进程退出逻辑,使用新等待队列接口 - 添加等待队列设计文档说明新机制 Signed-off-by: longjin <longjin@DragonOS.org>
Member
Author
|
@claude review this pr in chinese and add inline comments |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Signed-off-by: longjin <longjin@DragonOS.org>
- 在sys_rt_sigtimedwait中消费信号后及时刷新HAS_PENDING_SIGNAL状态,避免后续等待路 径误判 - 将futex可中断唤醒的错误码从ERESTARTSYS改为EINTR,以符合Linux语义 Signed-off-by: longjin <longjin@DragonOS.org>
- Changed the Docker image source from `docker.cnb.cool/dragonos-community/dragonos/dragonos-dev:v1.19` to `dragonos/dragonos-dev:v1.19` for consistency in CI workflows. Signed-off-by: longjin <longjin@DragonOS.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.