From mboxrd@z Thu Jan 1 00:00:00 1970 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 DDE4DC43381 for ; Tue, 19 Feb 2019 14:19:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0B122183F for ; Tue, 19 Feb 2019 14:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550585961; bh=TXf+DBGOwD3O/pFXb8O+1fXtXrjHezNWMMxLUd7bnz4=; h=Subject:To:From:Date:List-ID:From; b=Q46bTxjaRoj8xeufNb6oU3HwDGP3LwCPtOlyUpGqzfWnPUT/PPa7Ar8BbReCL6PB7 QK4RdSdPxXGUrf5AAjRNnKsSufQ21g6+R2aaftU3uw9iC6P4BlwuMzhJrZAGXLjppY H7MT+C2b73PR+fnec1K0WYOfBCKg5kgBjZnF1toE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbfBSOTV (ORCPT ); Tue, 19 Feb 2019 09:19:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:58714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbfBSOTU (ORCPT ); Tue, 19 Feb 2019 09:19:20 -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 AC81921773; Tue, 19 Feb 2019 14:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550585960; bh=TXf+DBGOwD3O/pFXb8O+1fXtXrjHezNWMMxLUd7bnz4=; h=Subject:To:From:Date:From; b=OGQRKfQgtUW0IBO5ANKL4hHZ0thj+msK8JWc9iXRKe7T8m9PmZoeWmg+oQ84TpT5u wvf29LVpvy1mxtAKSJ18ASH2O+ZMmrHKeqCXbq0J7AwqVSGTKZYGvVj8hCjh81HKnT W+kPrhXvRmYAxbC3wBAtczTYnFQgNQMGVyibXE3Q= Subject: patch "staging: android: ion: fix sys heap pool's gfp_flags" added to staging-next 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 15:19:17 +0100 Message-ID: <15505859572875@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-next 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 also be merged in the next major kernel release during the merge window. 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