标签: linux-kernel spinlock
我想了解spin_lock和spin_lock_bh之间的区别。 按照 https://www.kernel.org/doc/html/v4.15/kernel-hacking/locking.html#cheat-sheet-for-locking 如果关键部分在softirq和用户空间进程之间 我们应该使用spin_lock_bh。 如果在两个softirq之间 我们应该使用spin_lock。