]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdkfd: CRIU fixes
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Jun 2024 01:43:53 +0000 (21:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Sep 2024 17:44:30 +0000 (13:44 -0400)
commita4500b82bc85f7a15cff0729315c96015849e9e8
tree6f78e441767790121869b9b80833d33c60fd8860
parent6c6ca71bc1653d00623702ae031d0f9bde06a6fc
drm/amdkfd: CRIU fixes

Instead of trying to use close_fd() on failure exits, just have
criu_get_prime_handle() store the file reference without inserting
it into descriptor table.

Then, once the callers are past the last failure exit, they can go
and either insert all those file references into the corresponding
slots of descriptor table, or drop all those file references and
free the unused descriptors.

Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c