Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933276AbdC3K00 (ORCPT ); Thu, 30 Mar 2017 06:26:26 -0400 Received: from mail-db5eur01on0094.outbound.protection.outlook.com ([104.47.2.94]:8983 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933105AbdC3K0V (ORCPT ); Thu, 30 Mar 2017 06:26:21 -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: CC: , , Andrey Ryabinin , , , , , , , , , , , Subject: [PATCH 3/4] kernel/fork: use vfree() instead of vfree_atomic() to free thread stack Date: Thu, 30 Mar 2017 13:27:18 +0300 Message-ID: <20170330102719.13119-3-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170330102719.13119-1-aryabinin@virtuozzo.com> References: <20170330102719.13119-1-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM4P190CA0004.EURP190.PROD.OUTLOOK.COM (10.172.213.142) To HE1PR0801MB2058.eurprd08.prod.outlook.com (10.168.95.23) X-MS-Office365-Filtering-Correlation-Id: 039b0112-95c6-481b-547d-08d477573222 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:HE1PR0801MB2058; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2058;3:hVzXRfiujx/bt5ThuSeCNotZLiF4ZPRNqXjMWDndKZUvVDwAyaAWHGj89HvJSO/MeXeG6D/LtELGVss0Y317dXBPIIcOOf8apw3Mic66ThdgiQXTPgSz8wtrWTYMrEtLtQJEqDt1EznggjqEofYEaD1QXzaqhwsZNDyS1j9SJs4EhHOoZiQ4dXzJORsYXtf7KZqI6YLwPR1EgrAo+7P6NjefwKDYKk44nNIhi2HINE7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/HWaBnjqzWCRerSvD/sB2NgddkHNSv6O0P+sKMs8NCdQnD5LMofSf6YBXoa6xkeyl6jqnLALvxcvjacpwyRiacUWI0P3S73C24aWxYpaLKA32bpKUCMVDMaI2uAbcFm2Dnauiqd+PRGjQpM+00Yat8F/vzi2KGdvgo4VkBSuepzqjk1rY6CQGpGvln+glp8Rjc24uD+IpzcuSv7oBGxRZAnEFVEo6Ymn9qHLCv4mqGW4= 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)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(6072148);SRVR:HE1PR0801MB2058;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0801MB2058; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2058;4:pF1CH3FNkFtGAEgH7gxV7xrp1ADZAB49R+EHwwlUMrCbdzBfRzlDb37Ru82T3pYZ447t8FItnlnRV7mEIOXED41N1X3trkA3AbxwclmNlNEJ1KZ88ovHXdf0bLt7wr3mKpXbGUHVRYZQ5JLTza1YLod94ySEyu75heH40lxqGqOhwLMDfUdcNn+B2Nnd34yXAaE1Uh+Fv8MzpEXOiAIO+qG7m8V78rsioEo4tg5bEIYosQ9hAhTBLHiWxTLVITNJ/xtk18OGtaahKdtP3lDh8vI2IEObDzhwuOlAYEOfHmjCMJ68N/7jpGEls1X78zrod9qumVUFG7l02L9alIsnbuSAGig5Qaml1mWUJyZRoVx/Hyu/G8XsGhKTgP4J2nYIZvWCPuGHSmqs2YaEd96rsDNVTcNoa53mVQI98yltyRUrTIIeDRIVK2O59mXRY5fNEcYrvOPrAv4niSkcnmxAMPBgY7ldiUFgG/yfbINA05HdI6KbW7f2EUTc9D+KuBlJwxpH/wiihgbvh1Lf8/EGkXAPZpGke6fPJ5sBaRn9oer9QLUXqyUT9QQ7ZThXLOA6jdW9Cb28H8zYv49gpmznu/nYhBlNh/8MKE/GwNbqUwGdt6+idQg23ZIrOppjIjlTSS99le3HCzP2j/+hpnWWuixcGhAETnzzGgi0hr5/4c8= X-Forefront-PRVS: 02622CEF0A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6069001)(39840400002)(39410400002)(39450400003)(39400400002)(7736002)(50466002)(6506006)(36756003)(86362001)(38730400002)(6486002)(305945005)(6512007)(189998001)(2351001)(1076002)(110136004)(54906002)(53416004)(42186005)(81166006)(2950100002)(53936002)(8676002)(6916009)(7416002)(48376002)(76506005)(66066001)(5660300001)(76176999)(50986999)(50226002)(33646002)(3846002)(6116002)(25786009)(2906002)(47776003)(5003940100001)(4326008);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0801MB2058;H:localhost.sw.ru;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR0801MB2058;23:e1mtq8HJP4mn5enekMawORT3oSxKzKg+TEUWhG4?= =?us-ascii?Q?TQ1fgfxYiEMD56XDBgMjDtVvzpmhCl4miFNo/rrZiSte7trmROhBDItl3gBc?= =?us-ascii?Q?1knirUvaDS+f2Q8yq4yHzNNIRt5JXxOg1dyhkyO/9j9nfVbe08LTXyS3RDJa?= =?us-ascii?Q?b3tBLwQBlDKfHyIEha5GhkUsLVSAURyWtBQrEuRsesVApQD7WfxzLQzNaore?= =?us-ascii?Q?WobP5JDA79jswbsiKavUhggXGctnMkn5x7PxqTd04vgUjrnI+ca+uteoAbvF?= =?us-ascii?Q?tnjb0jfu6g0da5ZPvZyUDYXC9B8OPj0SZ2xd1dE8735oLIjdfjxaRNQIdJtF?= =?us-ascii?Q?zSKNirOiEU6N5n5VWlnUzp6y6X6nJ/MyibfBFcI8Y0T6DzB6e/N5Cvhwzv1D?= =?us-ascii?Q?tHoM2jlW2iZJRlG89BQXeF0u25rgNU4WSotG2Lb9Dux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Org: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2017 10:26:14.0422 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2058 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 a9f642d..084e6a4 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -241,7 +241,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