mm: get_user_pages: migrate out CMA pages when FOLL_DURABLE flag is set
authorVandana Salve <vsalve@nvidia.com>
Tue, 10 Jun 2014 09:40:04 +0000 (14:40 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Thu, 12 Jun 2014 00:09:55 +0000 (17:09 -0700)
commite032a2e8d2604e150cb610562c3c457b91050d56
tree7999fa5a48802e055fc09893e814001725144fcb
parent0e7370ef6597150986099c837b26ccb526f1ac4a
mm: get_user_pages: migrate out CMA pages when FOLL_DURABLE flag is set

When __get_user_pages() is called with FOLL_DURABLE flag,
ensure that no page in CMA pageblocks gets locked.
This workarounds the permanent migration failures caused
by locking the pages by get_user_pages() call for a long
period of time.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

bug 1517584

Change-Id: I11b7c87e78f1022d6fded85a1ed6bac73c5f0a7c
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/421678
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
mm/internal.h
mm/memory.c