jlaitine commented on issue #16341: URL: https://github.com/apache/nuttx/issues/16341#issuecomment-2862644921
Unfortunately, it looks like 16342 won't fix the issue; I cherry-picked the following patches: ``` commit 878c45eba94d96997a3e737696167b99452c0f37 (HEAD) Author: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> Date: Thu May 8 11:24:46 2025 +0800 sched/wqueue: Improve performance of the work_queue. This commit improve the performance of the work_queue by reducing unnecessary wdog timer setting. Signed-off-by: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> commit 47c3c1640fdc7dfe084a53e68c12f4b3557fa87a Author: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> Date: Thu May 8 11:17:46 2025 +0800 sched/wqueue: Fix work_cancel_sync. This commit fixed work_cancel_sync at a very rare boundary case. When a worker thread re-enqueues the work data structure during the execution of work, the user thread cannot directly dequeue the work in work_cancel_sync. Instead, it should wait until all workers' references to the work data structure have been eliminated after dequeuing. Signed-off-by: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> ``` On top of current master (156469f158753db41d39d08008aa1ae978af1a47) And the result is the same: ``` [==========] nuttx_mm_test_suites: 8 test(s) run. [ PASSED ] 8 test(s). [==========] tests: Running 1 test(s). [ RUN ] drivertest_posix_timer [ ERROR ] --- 2015 is not within the range [1990, 2010] [ LINE ] --- drivertest_posix_timer.c:162: error: Failure! [ FAILED ] drivertest_posix_timer [==========] tests: 1 test(s) run. [ PASSED ] 0 test(s). [ FAILED ] tests: 1 test(s), listed below: [ FAILED ] drivertest_posix_timer 1 FAILED TEST(S) Segmentation fault (core dumped) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org