Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d35fffbd authored by Chris Goldsworthy's avatar Chris Goldsworthy
Browse files

ion: Fix pool refill error



When performing secure pool allocations, it's possible to
spuriously trigger pool refill attempts for the cached and
uncached pools. Fix this by adding a check to see if we're
performing a secure allocation or not, before refilling a pool.

Change-Id: I9a415a302ca92790e6a793784020b09dea6a86e1
Signed-off-by: default avatarChris Goldsworthy <cgoldswo@codeaurora.org>
parent b27b7814
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ static struct page *alloc_buffer_page(struct ion_system_heap *heap,
	page = ion_page_pool_alloc(pool, from_pool);

	if (pool_auto_refill_en &&
	    pool_count_below_lowmark(pool)) {
	    pool_count_below_lowmark(pool) && vmid <= 0) {
		wake_up_process(heap->kworker[cached]);
	}