cma: Add 100ms delay before retrying for CMA allocation
CMA allocation sometimes fail because page is
momentarily pinned by some other process, i.e.
reference count page->_count > 1, as a
result of which we are not able to migrate
the page out of CMA area. When such situation
occurs, instead of failing to allocate and directly
returning error,sleep for 100ms and re-scan the
CMA area to see if the page which was pinned down
has been freed.
Change-Id: Ie9b92002f38fd44cf28aee32a184c57c26e59437
Signed-off-by:
Susheel Khiani <skhiani@codeaurora.org>
Loading
Please register or sign in to comment