427 Star 1.5K Fork 1.6K

GVPopenEuler/kernel

 / 详情

【OLK-5.10】 新增timer_shutdown[_sync]()接口

已完成
任务
创建于  
2023-08-07 19:56

【特性描述】
timer_shutdonw_sync对于解决timer导致的teardown循环依赖问题很有帮助,典型场景是timer和workqueue可以互相唤醒,导致在cleanup阶段时无法完全清除workqueue和timer,容易导致use-after-free问题。调用顺序如下:

 timer_shutdown_sync(&mything->timer);
 workqueue_destroy(&mything->workqueue);

之后mything可以被安全释放
【特性竞争力】
为workqueue和timer teardown提供更加安全和方便的方法。
【硬件架构】
N/A
【特性约束】
N/A
【涉及仓库】
NA
【交付个人/团队】
廖宇

评论 (1)

liaoyu 创建了任务 2年前

Hi liaoyu15, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

openeuler-ci-bot 添加了
 
sig/Kernel
标签
2年前
liaoyu 修改了标题 2年前
liaoyu 修改了描述 2年前
liaoyu 修改了标题 2年前
liaoyu 修改了标题 2年前
ci-robot 通过合并 Pull Request !1727: add support for timer_shutdown() api任务状态待办的 修改为已完成 2年前
liaoyu 修改了描述 2年前
liaoyu 修改了描述 2年前
liaoyu 修改了描述 2年前

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936 10199985 liaoyu15 1666775638
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助

371d5123 14472233 46e8bd33 14472233