mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
files-ext: Allow plugin files to retry
amdgpu dmabuf CRIU requires the ability of the amdgpu plugin to retry. Change files_ext.c to read a response of 1 from a plugin restore function to mean retry. Signed-off-by: David Francis <David.Francis@amd.com>
This commit is contained in:
parent
7a4ee0ae8e
commit
fb02dbf685
3 changed files with 11 additions and 5 deletions
|
|
@ -1614,7 +1614,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int amdgpu_plugin_restore_file(int id)
|
||||
int amdgpu_plugin_restore_file(int id, bool *retry_needed)
|
||||
{
|
||||
int ret = 0, fd;
|
||||
char img_path[PATH_MAX];
|
||||
|
|
@ -1625,6 +1625,8 @@ int amdgpu_plugin_restore_file(int id)
|
|||
size_t img_size;
|
||||
FILE *img_fp = NULL;
|
||||
|
||||
*retry_needed = false;
|
||||
|
||||
if (plugin_disabled)
|
||||
return -ENOTSUP;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue