]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/amdxdna: Replace mmput with mmput_async to avoid dead lock
authorLizhi Hou <lizhi.hou@amd.com>
Fri, 6 Dec 2024 21:59:55 +0000 (13:59 -0800)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 13 Dec 2024 16:32:57 +0000 (09:32 -0700)
commitcfc722fc1c72e415d5f473affcdb3f3f556233f6
tree443212d17975f59bd6d6ca5561ff02464d8c14f7
parentc3772d6c04c8a61c0e11831e4de857aff95385f0
accel/amdxdna: Replace mmput with mmput_async to avoid dead lock

Hardware mailbox message receiving handler calls mmput to release the
process mm. If the process has already exited, the mmput here may call mmu
notifier handler, amdxdna_hmm_invalidate, which will cause a dead lock.
Using mmput_async instead prevents this dead lock.

Fixes: aac243092b70 ("accel/amdxdna: Add command execution")
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241206220001.164049-3-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c