mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-22 18:05:10 +00:00
plugins/amdgpu: add a comment for retry_needed
Add a comment that explains the purpose of `retry_needed`. Co-authored-by: Andrei Vagin <avagin@google.com> Signed-off-by: David Francis <David.Francis@amd.com> Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
77e6558ddb
commit
6ed49894c5
1 changed files with 4 additions and 0 deletions
|
|
@ -1837,6 +1837,10 @@ int amdgpu_plugin_restore_file(int id, bool *retry_needed)
|
|||
if (!img_fp) {
|
||||
ret = amdgpu_plugin_dmabuf_restore(id);
|
||||
if (ret == 1) {
|
||||
/* This is a dmabuf fd, but the corresponding buffer object that was
|
||||
* exported to make it has not yet been restored. Need to try again
|
||||
* later when the buffer object exists, so it can be re-exported.
|
||||
*/
|
||||
*retry_needed = true;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue