Issue created by Christian Mauderer: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/114

Assignee: Christian Mauderer

## Summary

https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5825 is about 
backporting patches that change the watchdog API. That makes it necessary to 
also backport the related patch from 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/169 in LibBSD.

Mostly from the MR 169:

On SMP, this order of events is possible for a sleepqueue:

1. Processor A: A timeout expires. The tick removes it from the list of pending 
timeouts.
2. Processor B: A wakeup ends the sleep. The thread tries to cancel its 
timeout, but the tick already removed it.
3. Processor B: The thread begins its next sleep.
4. Processor A: The tick calles sleepq_timeout() for the old timeout. The 
routine sees a sleeping thread and ends the next sleep.

The next sleep then returns EWOULDBLOCK, although its own timeout did not 
expire.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/114
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/20/sent_notifications/6-3fpxip3trfhhtjwwkbqbzx3zc-k/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to