Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: work: fix schedule from running work #33354

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

pabigot
Copy link
Collaborator

@pabigot pabigot commented Mar 15, 2021

k_work_schedule() is supposed to be a no-op if the work item is
already scheduled or submitted: the previous schedule is left
unchanged. The check incorrectly inhibited the schedule operation
when the work item was neither scheduled nor submitted, but was
running.

Fixes #33353

k_work_schedule() is supposed to be a no-op if the work item is
already scheduled or submitted: the previous schedule is left
unchanged.  The check incorrectly inhibited the schedule operation
when the work item was neither scheduled nor submitted, but was
running.

Signed-off-by: Peter Bigot <[email protected]>
@carlescufi
Copy link
Member

@dcpleung @nashif @andyross we need this merge so we unblock the k_work deprecation process described in #33104

@nashif nashif merged commit fed0352 into zephyrproject-rtos:master Mar 29, 2021
@pabigot pabigot deleted the nordic/20210315b branch April 16, 2021 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Kernel area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

work: k_work_schedule from running work item does not schedule
4 participants