From c2ff0418e198a2c47d2e2b6fbb6d1a6a6710f703 Mon Sep 17 00:00:00 2001 From: Kirill Tkhai Date: Tue, 24 May 2016 19:42:00 +0300 Subject: [PATCH] aio: Consider AIO pages as "should be dumped" We were luckely on built-in tests, because always AIO pages were present, and, thus, they are dumped. But AIO pages are not guaranteed to be present in common case. This patch makes AIO pages are dumped certanly. Signed-off-by: Kirill Tkhai Signed-off-by: Pavel Emelyanov --- criu/mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/criu/mem.c b/criu/mem.c index c4fc64a5d..128d273d0 100644 --- a/criu/mem.c +++ b/criu/mem.c @@ -102,6 +102,8 @@ static inline bool should_dump_page(VmaEntry *vmae, u64 pme) */ if (vma_entry_is(vmae, VMA_FILE_PRIVATE) && (pme & PME_FILE)) return false; + if (vma_entry_is(vmae, VMA_AREA_AIORING)) + return true; if (pme & PME_SWAP) return true; if ((pme & PME_PRESENT) && ((pme & PME_PFRAME_MASK) != kdat.zero_page_pfn))