在调用 mutex_lock 和 mutex_lock_interruptible API 后将调用者置于 interruptible/non 可中断状态的原因是什么?

What is the reason to put caller in interruptible/non interruptible state after call to mutex_lock and mutex_lock_interruptible API?

mutex API in linux 提供了不同的函数来锁定互斥量,例如mutex_lock/mutex_lock_interruptible.. 将您的线程置于不间断等待中的原因是什么?我的意思是线程已经在等待.. 为什么我们不能同时执行中断?想不出可能的场景(可能是我孤陋寡闻),请大家指点。

这与阻止中断无关。事实上,这是没有意义的,用互斥锁阻塞的全部意义在于摆脱 cpu.

不间断睡眠就是在你等待的条件(这里:锁)满足之前不会被唤醒。