Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754238AbdDLMto (ORCPT ); Wed, 12 Apr 2017 08:49:44 -0400 Received: from mail-eopbgr00101.outbound.protection.outlook.com ([40.107.0.101]:44640 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752817AbdDLMtg (ORCPT ); Wed, 12 Apr 2017 08:49:36 -0400 Authentication-Results: linux-foundation.org; dkim=none (message not signed) header.d=none;linux-foundation.org; dmarc=none action=none header.from=virtuozzo.com; From: Andrey Ryabinin To: Andrew Morton CC: , Andrey Ryabinin , , , , , , , , , , , , , Subject: [PATCH v2 3/5] kernel/fork: use vfree() instead of vfree_atomic() to free thread stack Date: Wed, 12 Apr 2017 15:49:03 +0300 Message-ID: <20170412124905.25443-4-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170412124905.25443-1-aryabinin@virtuozzo.com> References: <20170330102719.13119-1-aryabinin@virtuozzo.com> <20170412124905.25443-1-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0601CA0026.eurprd06.prod.outlook.com (10.166.117.36) To VI1PR0801MB2734.eurprd08.prod.outlook.com (10.166.198.27) X-MS-Office365-Filtering-Correlation-Id: 30b7935d-e1b2-4362-d93e-08d481a25a89 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:VI1PR0801MB2734; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB2734;3:I0YR4EVuXhVbUfNQFah8EtKrnTi1uOZEm8VcXNGuJfpWzjt14XQ+2uYkrlmC/UJuwev0ab+8YMqZhQkaT6+h1ErEUwL9I3fZ4W9WR5IFjhRTePM9eqmA/5R0F49wMfE2ui1SbKTDaGEQmcxLsrraK1IWgZo/fl/rf1NoEAa8AxIXAoYOqe8KnyFShnC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3BXKImwBHKtzP2K4J6LM3C6Gigi/o79tA1HjfvR+poH7/vQVlm9F+s7O6eKqaq6gMirHeQCE9vDWdWAUlvEBEu2ONeyRGW+0JkzlS8s5+D/+R7L+BtaOURV2wnnhSKUe7M0zokwUVerC6tHajMXuN/J3DOGgtcD+HOce8t7oGURJ68p7pHTccsWAphXzLdW1qe4PcgYss+554dI3YHJkCPcKyIhvZ41WkCarC61tefWXQ+sYoF49aU39SNfRk4mR9QfdJ30zJAA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123564025)(6072148);SRVR:VI1PR0801MB2734;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0801MB2734; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB2734;4:C6KwOrV67QJ80bQzS+R6E7RbfanmjcrD+PgjAnJb9pcoJgMTVsphz4h7yh3qmUfwl3t73ZXKODqYUa/LvaEDLPvNTvZy7MIY/6aXTg96B0MSb6645erv4xMQauJ4qVEvkPDIhUM5muQm+qHnVUuxCwKFMQVB+wrrybMMOXKF56nC9YFhsQ6EsBqvDQwgTbzhhKEyZg5mfvTS8DihSgxYoavBRrslGFzSdNYA8qtoT4JeZjHlryC3fnzduaInvsBEbYNWWuJ8m2iXwM6XWxbMZ4ec3ONxrJVHZ1UrkylnLb3RkMW/FEZ2mAQ7I5Sq5iLJH1xBrwdkYOvofR/mgclrkf6xKgrIJIVcvHB8G7Ivv7J4htq5mg/LcX6+/gK/HuFlqgIAyQdVyJPGLmOTHth47QCiEXPbuomjFuumhKXfQftXf0L/OXDVQCmcC932JXEMhzU775hp/ZP7mFlCeJ+fs1W7WxAGQ0JeH+BNVa1QW/BcmcfiI0ASlfmEEOa1Ucwen8HkUeN7//UTOlGX8TsPVl8BfVJrGaNWQvnI/+JuKql3OKwK1fXA2H5drn/+L8oU6IcadK1EG+hsEPQEmGT4cG6Srv2DyT2+LZUdB1YH/p9PzhPqjQVe0fjMjlAVRd65ZjBaHN1G9f9dWcVT1pXP3XkezL6RrK2lpheOjrKUHXXpvCG3bH1LunuZoFr+YWWiJzMJlDBXhcHRiOEd7dWHkQ== X-Forefront-PRVS: 027578BB13 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6069001)(6009001)(39400400002)(39410400002)(39830400002)(39450400003)(42186005)(25786009)(53416004)(3846002)(33646002)(6116002)(76506005)(305945005)(50466002)(53936002)(4326008)(86362001)(8676002)(5003940100001)(38730400002)(2950100002)(1076002)(6916009)(2906002)(50226002)(189998001)(110136004)(48376002)(6666003)(6486002)(5660300001)(6512007)(36756003)(54906002)(6506006)(7416002)(81166006)(50986999)(76176999)(7736002)(47776003)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0801MB2734;H:localhost.sw.ru;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0801MB2734;23:/foFa4K0bAUnah0TKo1rgVT2FVqgiLZq8aGr/uz?= =?us-ascii?Q?HS0RXpcsYtliVR3bUxBaaA6FEDYkuPvyMCWmOIiao3KSCMYfuazubZVxkqp3?= =?us-ascii?Q?vzzyRJ/qpVLliUxYmjskgLlCysC25ZbOIOhuggPJFtMkxwAaI6QKBQh+X9GG?= =?us-ascii?Q?M7bCJl5JVnKrNtJXai9UzhCYfDgjRFRDSegSIP7Kgi0in9vow0p5t1Xc24Sg?= =?us-ascii?Q?ZtHnDhBKQugUhT0/CQw6ZAyp4S/VagSn0J/rsvKDYNH6gYn9hZDYl5IVjVek?= =?us-ascii?Q?jeV6e9C3Qf9B2wJw4IDNeZlxKUaJFfrlI3eip2hEtRVaC8CuirL2HDwjJ2or?= =?us-ascii?Q?6YzT7DC7C5s5zt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R0SgKYZOlGKU0gunq2j7UBjdZq4fvNLoFugxNkZnTXnxiSqON++VtBXJ7fpk0dEbxTvt+Lp5hlssRhzDB69TOLnvTWzLCw2DiniSgIcnWS1ptEYnZFwp8PFr0Zt2rGQLN5/HrxUjNq3fE= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 12:49:25.4125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2734 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 633 Lines: 25 vfree() can be used in any atomic context now, thus there is no point in using vfree_atomic(). This reverts commit 0f110a9b956c ("kernel/fork: use vfree_atomic() to free thread stack") Signed-off-by: Andrey Ryabinin --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/fork.c b/kernel/fork.c index 81347bd..e4baa21 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -259,7 +259,7 @@ static inline void free_thread_stack(struct task_struct *tsk) } local_irq_restore(flags); - vfree_atomic(tsk->stack); + vfree(tsk->stack); return; } #endif -- 2.10.2