On 01-Dec-26 4:01 PM, Dawid Osuchowski wrote:
From: Jozef Wludzik <[email protected]>

The context mutex is held across reclaimable page-table allocations.
Taking the same mutex to remove a VA node during BO destruction can
deadlock when destruction runs in direct reclaim.

Protect drm_mm insertion and removal with a dedicated spinlock instead.
These operations use preallocated nodes and do not sleep. Keep both
alignment attempts under the same lock and retain the context mutex for
page-table mapping, allocation and context descriptor updates.

Signed-off-by: Jozef Wludzik <[email protected]>
Signed-off-by: Dawid Osuchowski <[email protected]>
---
Reviewed-by: Andrzej Kacprowski <[email protected]>

Reply via email to