Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A80D8C43381 for ; Tue, 19 Feb 2019 10:12:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7680A2177E for ; Tue, 19 Feb 2019 10:12:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550571162; bh=RZV+K3kvupGBiLmNaQpxa1Gn/+bdeygj6s+KqY4t1xw=; h=Subject:To:From:Date:List-ID:From; b=y3bqJRyZSIR5Q+RKztVysUm75lFIk4pa9VPAJziFDesC1SsZ9bGicljwlxJkNk5JO 1ArfrlArJkHNG+PmijiaaJghFzTnkk7tB7pxsRNTlCPAtp1ulaCvKD+qpXF0wFYS4L cTT0PSogGCtW9p3cP4gh0WGTnUWqale5dt3BDq5E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727268AbfBSKMl (ORCPT ); Tue, 19 Feb 2019 05:12:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:33522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbfBSKMl (ORCPT ); Tue, 19 Feb 2019 05:12:41 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 535CA2075C; Tue, 19 Feb 2019 10:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550571160; bh=RZV+K3kvupGBiLmNaQpxa1Gn/+bdeygj6s+KqY4t1xw=; h=Subject:To:From:Date:From; b=b/N9HRpGzId3mt0PFWSbAMYUy51J4k0Vk/+PnzqSnW8fc/tP1zCZPLtEmrjB6QSzc Ji4nvMKMKuHDyTHMn9+DUFrnXBfH38iH3SV9MACrWo3WvLZtVdbGCKxmkjs/2CanQO aQQRiXG8DZR118DSa7VDt452wJLaRP7g+CPz8lPY= Subject: patch "staging: android: ion: fix sys heap pool's gfp_flags" added to staging-testing To: saberlily.xia@hisilicon.com, gregkh@linuxfoundation.org, jing.xia@unisoc.com, orson.zhai@unisoc.com, stable@vger.kernel.org, yuming.han@unisoc.com, zhaoyang.huang@unisoc.com From: Date: Tue, 19 Feb 2019 11:12:37 +0100 Message-ID: <155057115783197@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled staging: android: ion: fix sys heap pool's gfp_flags to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-testing branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will be merged to the staging-next branch sometime soon, after it passes testing, and the merge window is open. If you have any questions about this process, please let me know. From 9bcf065e28122588a6cbee08cf847826dacbb438 Mon Sep 17 00:00:00 2001 From: Qing Xia Date: Fri, 1 Feb 2019 14:59:46 +0800 Subject: staging: android: ion: fix sys heap pool's gfp_flags In the first loop, gfp_flags will be modified to high_order_gfp_flags, and there will be no chance to change back to low_order_gfp_flags. Fixes: e7f63771b60e ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc") Signed-off-by: Qing Xia Cc: stable Signed-off-by: Jing Xia Reviewed-by: Yuming Han Reviewed-by: Zhaoyang Huang Reviewed-by: Orson Zhai Signed-off-by: Greg Kroah-Hartman --- 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 ec526a464db8..aa8d8425be25 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -224,10 +224,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools) static int ion_system_heap_create_pools(struct ion_page_pool **pools) { 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.20.1