Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【OLK-5.10】arm64 ci,出现hung_task: blocked task, dio truncate
Done
#I7A0N9
Task
hulk-robot
Opened this issue
2023-06-01 11:55
【严重程度】 一般 【特性】 基础架构/entry 【重现类型】 有条件必然重现 【定位分析】 </p><p>handoff机制用于防止锁饿死,但在使能乐观自旋时,如下场景handoff机制不能生效:</p><p>1、读者1持锁 -- 1个读者持锁</p><p>2、读者2进来,走快速路径持锁 -- 2个读者持锁</p><p>3、写者1进来,乐观自旋失败,进入队列等待 -- 2个读者持锁,1个写者在队列中等锁</p><p>4、读者3/4/5/6...进来,乐观自旋等待 -- 2个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>5、读者1放锁,因为读者2存在,读者数量非0,不会wake等待队列里的进程(wake进程才能使handoff机制生效) -- 1个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>6、读者3检测到owner变化,抢到读锁 -- 2个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>不断有读者进来,4/5/6陷入循环,写者长时间等不到锁</p><p>当前用例存在16个读者1个写者并发的情况,可能会触发上述问题场景</p><p>
【严重程度】 一般 【特性】 基础架构/entry 【重现类型】 有条件必然重现 【定位分析】 </p><p>handoff机制用于防止锁饿死,但在使能乐观自旋时,如下场景handoff机制不能生效:</p><p>1、读者1持锁 -- 1个读者持锁</p><p>2、读者2进来,走快速路径持锁 -- 2个读者持锁</p><p>3、写者1进来,乐观自旋失败,进入队列等待 -- 2个读者持锁,1个写者在队列中等锁</p><p>4、读者3/4/5/6...进来,乐观自旋等待 -- 2个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>5、读者1放锁,因为读者2存在,读者数量非0,不会wake等待队列里的进程(wake进程才能使handoff机制生效) -- 1个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>6、读者3检测到owner变化,抢到读锁 -- 2个读者持锁,1个写者在队列中等锁,多个读者乐观自旋</p><p>不断有读者进来,4/5/6陷入循环,写者长时间等不到锁</p><p>当前用例存在16个读者1个写者并发的情况,可能会触发上述问题场景</p><p>
Comments (
2
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
YangYingliang
yangyingliang
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register