mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
plugin/amdgpu: Don't print error for "No such process" during resume
During the late stages of restore, each process being resumed gets an ioctl call to KFD_CRIU_OP_RESUME. If the process has no kfd process info, this call with fail with -ESRCH. This is normal behaviour, so we shouldn't print an error message for it. Signed-off-by: David Francis <David.Francis@amd.com>
This commit is contained in:
committed by
Andrei Vagin
parent
07a090b245
commit
a9cbdad76f
@@ -1999,7 +1999,10 @@ int amdgpu_plugin_resume_devices_late(int target_pid)
|
||||
args.op = KFD_CRIU_OP_RESUME;
|
||||
pr_info("Calling IOCTL to start notifiers and queues\n");
|
||||
if (kmtIoctl(fd, AMDKFD_IOC_CRIU_OP, &args) == -1) {
|
||||
pr_perror("restore late ioctl failed");
|
||||
if (errno == ESRCH)
|
||||
pr_info("Pid %d has no kfd process info\n", target_pid);
|
||||
else
|
||||
pr_perror("restore late ioctl failed");
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user