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

sim: fix regression from https://github.com/apache/nuttx/pull/14623 #15586

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

hujun260
Copy link
Contributor

Summary

sim: fix regression from #14623
reason:
work_timer_expiry may be called in thread context

Impact

sim

Testing

#15582

reason:
work_timer_expiry may be called in thread context

Signed-off-by: hujun5 <[email protected]>
@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Jan 17, 2025
@xiaoxiang781216 xiaoxiang781216 linked an issue Jan 17, 2025 that may be closed by this pull request
1 task
@@ -80,6 +79,7 @@ static void work_timer_expiry(wdparm_t arg)
}

spin_unlock_irqrestore(&work->wq->lock, flags);
sched_unlock();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these locks need to be released in this order for some reasons?
otherwise, it's more natural to release them in the reverse order of acquiring them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it need be this order. but all shced_lock like thsi will be removed after #14578 get merged.

@xiaoxiang781216 xiaoxiang781216 merged commit b8660fc into apache:master Jan 17, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] sim_vpnkit is breaking watchdog?
3 participants