-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sched/spinlock: remove nesting spinlock support #14079
Conversation
developers must be careful to hold spinlocks and ensure all of protected code is under control, so remove support for nested spinlocks to improve performance. Signed-off-by: chao an <[email protected]>
[Experimental Bot, please feedback here] No, this PR does not meet the NuttX requirements. Summary:
Impact:
Testing:
In addition to the points above, the PR should also address the following:
Recommendation: The author should revise the PR to address the missing information and provide a more comprehensive explanation of the change, its impact, and the testing performed. |
I noticed that spresense:wifi_smp causes a deadlock with this PR.
|
Ok, I don't have a spresense board, let's revert this commit first |
@masayuki2009 could you please help to try PR #14200 is works for you? if not, I will solve this issue until I get the spresense board |
…qsave reason: 1 There is a similar PR, apache#14079, 2 Currently, no one is using recursive locks with write_lock_irqsave/read_lock_irqsave. 3 Nested spinlock is harmful, prone to abuse and leading to a decline in code quality and performance 4 Nested spinlock is also not available in Linux. 5 In our future plans, nested usage of enter_critical_section and spin_lock_irqsave will also be removed. Signed-off-by: hujun5 <[email protected]>
…qsave reason: 1 There is a similar PR, #14079, 2 Currently, no one is using recursive locks with write_lock_irqsave/read_lock_irqsave. 3 Nested spinlock is harmful, prone to abuse and leading to a decline in code quality and performance 4 Nested spinlock is also not available in Linux. 5 In our future plans, nested usage of enter_critical_section and spin_lock_irqsave will also be removed. Signed-off-by: hujun5 <[email protected]>
…qsave reason: 1 There is a similar PR, apache#14079, 2 Currently, no one is using recursive locks with write_lock_irqsave/read_lock_irqsave. 3 Nested spinlock is harmful, prone to abuse and leading to a decline in code quality and performance 4 Nested spinlock is also not available in Linux. 5 In our future plans, nested usage of enter_critical_section and spin_lock_irqsave will also be removed. Signed-off-by: hujun5 <[email protected]>
…qsave reason: 1 There is a similar PR, apache#14079, 2 Currently, no one is using recursive locks with write_lock_irqsave/read_lock_irqsave. 3 Nested spinlock is harmful, prone to abuse and leading to a decline in code quality and performance 4 Nested spinlock is also not available in Linux. 5 In our future plans, nested usage of enter_critical_section and spin_lock_irqsave will also be removed. Signed-off-by: hujun5 <[email protected]>
Summary
sched/spinlock: remove nesting spinlock support
developers must be careful to hold spinlocks and ensure all of protected code is under control, so remove support for nested spinlocks to improve performance.
Signed-off-by: chao an [email protected]
Impact
N/A
Testing
ci-check