jinliangli opened a new issue, #16107: URL: https://github.com/apache/nuttx/issues/16107
### Description / Steps to reproduce the issue Task A takes a spinlock, however it may still preempted by higher priority task, that's very dangerous! If the higher priority task acquire the same spinlock, then dead lock occurs. spin_lock api behave like linux's spinlock, that imply preempt_disable. That's different api with spin_lock_irqsave. If there are no objections, I will fix this bug. ### On which OS does this issue occur? [OS: Linux] ### What is the version of your OS? ubuntu 20.04 ### NuttX Version master ### Issue Architecture [Arch: arm], [Arch: all] ### Issue Area [Area: Kernel] ### Host information _No response_ ### Verification - [x] I have verified before submitting the report. -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org