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

Commit 7cadb9f2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: cma: retry only on EBUSY"

parents b95c1d30 54261b64
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -482,7 +482,8 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align,
				bitmap_maxno, start, bitmap_count, mask,
				offset);
		if (bitmap_no >= bitmap_maxno) {
			if (retry_after_sleep < max_retries) {
			if ((retry_after_sleep < max_retries) &&
						(ret == -EBUSY)) {
				start = 0;
				/*
				 * update max retries if available free regions