NO.1 Do NOT make you process sleep when you are in the atomic context,especially,when you are holding a spinlock,seqlock or RCU lock.
NO.2 If your device interrupt services are to acquire a spinlock,do remember disable interrupts when you are going to acquire this spinlock.
本文介绍了在原子上下文中进行进程锁操作时应注意的关键事项,包括避免让进程睡眠以及在获取旋转锁时禁用中断等。这些技巧对于提高系统的稳定性和响应速度至关重要。
2918

被折叠的 条评论
为什么被折叠?



