[CRIU] [PATCH] aio: Consider AIO pages as "should be dumped"

Kirill Tkhai ktkhai at virtuozzo.com
Tue May 24 09:42:13 PDT 2016


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 <ktkhai at virtuozzo.com>
---
 criu/mem.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/criu/mem.c b/criu/mem.c
index 6ca5da1..5be3436 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))



More information about the CRIU mailing list