mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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:
parent
07a090b245
commit
a9cbdad76f
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue