mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask setting
@ 2018-01-09 10:43 Zeng Tao
  2018-01-09  3:30 ` Chen Feng
  0 siblings, 1 reply; 7+ messages in thread
From: Zeng Tao @ 2018-01-09 10:43 UTC (permalink / raw)
  To: labbott, sumit.semwal, gregkh, arve, tkjos, maco
  Cc: devel, linux-kernel, puck.chen

This issue is introduced by the commit <e7f63771b60e> ("ION: Sys_heap:
Add cached pool to spead up cached buffer alloc"), the gfp_mask low
order pool is overlapped by the high order inside the loop, so the
gfp_mask of all pools are set to high_order_gfp_flags.

Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
---
 drivers/staging/android/ion/ion_system_heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c
index 4dc5d7a..b6386be 100644
--- a/drivers/staging/android/ion/ion_system_heap.c
+++ b/drivers/staging/android/ion/ion_system_heap.c
@@ -298,10 +298,10 @@ static int ion_system_heap_create_pools(struct ion_page_pool **pools,
 					bool cached)
 {
 	int i;
-	gfp_t gfp_flags = low_order_gfp_flags;
 
 	for (i = 0; i < NUM_ORDERS; i++) {
 		struct ion_page_pool *pool;
+		gfp_t gfp_flags = low_order_gfp_flags;
 
 		if (orders[i] > 4)
 			gfp_flags = high_order_gfp_flags;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-11 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 10:43 [PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask setting Zeng Tao
2018-01-09  3:30 ` Chen Feng
2018-01-09  9:14   ` Dan Carpenter
2018-01-09 12:06     ` 答复: " Zengtao (B)
2018-01-11  0:00       ` Laura Abbott
2018-01-11  2:06         ` 答复: " Zengtao (B)
2018-01-11 18:29           ` Laura Abbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®