]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Remove amdxdna_flush()
authorLizhi Hou <lizhi.hou@amd.com>
Tue, 16 Dec 2025 03:13:11 +0000 (19:13 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 17 Dec 2025 16:28:53 +0000 (08:28 -0800)
commite8c28e16c3ebd142938aee296032c6b802a5a1d4
tree0d826008b8b45c0ebf4587d4f44e1e1ab9270ff9
parent5c3c3e7b654df01a69d49551a08b7863c09546f6
accel/amdxdna: Remove amdxdna_flush()

amdxdna_flush() was introduced to ensure that the device does not access
a process address space after it has been freed. However, this is no
longer necessary because the driver now increments the mm reference count
when a command is submitted and decrements it only after the command has
completed. This guarantees that the process address space remains valid
for the entire duration of command execution. Remove amdxdna_flush to
simplify the teardown path.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20251216031311.2033399-1-lizhi.hou@amd.com
drivers/accel/amdxdna/amdxdna_pci_drv.c