mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge "mm: cma: retry only on EBUSY"
This commit is contained in:
commit
7cadb9f2ea
1 changed files with 2 additions and 1 deletions
3
mm/cma.c
3
mm/cma.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue