diff options
Diffstat (limited to 'pkg/sentry/kernel/kernel.go')
-rw-r--r-- | pkg/sentry/kernel/kernel.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go index 91889b573..85d73ace2 100644 --- a/pkg/sentry/kernel/kernel.go +++ b/pkg/sentry/kernel/kernel.go @@ -304,10 +304,11 @@ func (k *Kernel) SaveTo(w io.Writer) error { defer k.resumeTimeLocked() // Evict all evictable MemoryFile allocations. - k.mf.FlushEvictions() + k.mf.StartEvictions() + k.mf.WaitForEvictions() // Flush write operations on open files so data reaches backing storage. - // This must come after k.mf.FlushEvictions() since eviction may cause file + // This must come after MemoryFile eviction since eviction may cause file // writes. if err := k.tasks.flushWritesToFiles(ctx); err != nil { return err |