mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
This deadlock was introduced with the creation of this API. The lock order is such that we always need to take the page directory lock before we ever take the MM lock. This function violated that, as both Region creation and region destruction require the pd and mm locks, but with the mm lock already acquired we deadlocked with SMP mode enabled while other threads were allocating regions. With this change SMP boots to the desktop successfully for me, (and then subsequently has other issues). :^)
49 KiB
49 KiB