kernel/lock: Assert that a write lock isn't held in switch_from_read_lock.

This commit is contained in:
Augustin Cavalier
2026-03-21 13:37:13 -04:00
parent 5811e4bf6f
commit e13a6e6ec2
+1
View File
@@ -978,6 +978,7 @@ mutex_switch_from_read_lock(rw_lock* from, mutex* to)
"for locks %p, %p", from, to);
}
#endif
ASSERT(from->holder != thread_get_current_thread_id());
InterruptsSpinLocker locker(to->lock);