Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754090AbdDLMux (ORCPT ); Wed, 12 Apr 2017 08:50:53 -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 S1752807AbdDLMte (ORCPT ); Wed, 12 Apr 2017 08:49:34 -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 2/5] x86/ldt: use vfree() instead of vfree_atomic() Date: Wed, 12 Apr 2017 15:49:02 +0300 Message-ID: <20170412124905.25443-3-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: 9ae3d9a5-8e75-4adb-d071-08d481a2595f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:VI1PR0801MB2734; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB2734;3:0DT6jB5dibJNz8oWKjLkXSbg0haz00l9NR7RrFckViVz2Sszm/H1KNaU9etB1hZMqsFiBSydkVlAjZzzPjoKuBQFit+EVt4vctk6RWM/6Q6PX+DAuQpJpInKLRg+/UUxJa0/WmQuZGbbgdehTMVFWW26TKaH7XGZU0mJ2Dn5EWWvvL9t8ex/odg91KkERvAOTGcfUqElW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TTEXPJOeX2daMgLhcNYXtXL4OqIDJWjAtXZ6SyzIaxhSsquN0Rmh8zrafx0/KLWY3FdUtT6IBcMAgLrvRnAnS/3bQIE+UmCnDEKFYT/ReSxpnDl2I9By7OqUpOmkp4mK0PBvEYyx6foqQgltvyMyffub3pT1jXLWiSF/2jQKODIq+tsvE6s13oohezZ45PPY6fgmZAq1jFrFEzfO4o6HAJW5yr0w52428JME87uwinS/OCs6RFi/HivRTRMCgw= 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:0+nNKvuO5u6iN+xXR5I1uMn39QMRl9d5so2TQ0NLn+AgeWwjMbJUdjB6YgK9AGVeyTY7RxHKDdHrM2/KiP4tVQ2TTBf0hDsULQ15VscPLhrP5cArmpKi5d6B2wkXSohpbqcDqPHDLdjbp0F9opwnz6vQ6cTX5M3mw838OJ24ZD42gVM2eYMnPCWaRwCl13+BvLr8W9qDnNt0gdO4NxeI6xyDVjIaPJEimF/JtPML5pjCiR3MQHmaZO2xUlfBAFlBHi+gAGvcbC7pigp5tXxZ7DB9e9lAE7QO6qO8tJ4dY8B/R3++uVavW4yI/e4jLd4r2m/9jhCTWs/GtxoxSVvux9zj9I5FH+MJaEoCkFXwAS34DNUP1U1s7iLdGdqIkIu+GSGZ8M5hMbN4HXTyLeZsASViq9dVoAZs0HtZBOWPRqHp9f0RYOQoOBO5iaJvJyGy9OXKysynUSo+DpXLQ0PpvJ1YeJyt3ovHY0/LAVfA2nOVc5/QM1+T4fcDb/u0UuGMIgReq12n8XGBwa9L3jKl/p1Oa08k1D7mAZKisaf0NGxcterclHbgk5XrLLgYqhlwCQ8rijTI26iY95uV8QUqHu8axVzR9CH/5B7aoTVPza1McBj0Si0hHGHP0hTG9hxhMyXCrk4iN7atBJHepYk+9nrJF5JuFzm98IUglv6jftOehthXz1rkwKcA6ylUfGTB2/GcU4ReQJy2l2RbRNr+pQ== 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:bwwPGqOb5Lot9mElxSWceJAVo5iMNt/7I9Viw7Z?= =?us-ascii?Q?v9lLeExloZq9GHg0w6FnG9HANOuFpIAM+oRo4z97kO4tqRaIds9C8fX48SbJ?= =?us-ascii?Q?iibLSPSAJ2spXajN2dmS3SllBf1REQfW6mhu9ClB5xx51UUWxzfK0zEld46N?= =?us-ascii?Q?tWOdxSpUDESaOcIPgbvJJ+PDQs7db3IoMPagYmdcSG+HIx5Z7Ykw8UgzFo3K?= =?us-ascii?Q?qe6fLVaEWoqgUR5GVO84osuezI9vmwlKPw2ktKGhOL3MkmOpfin1vZK+D3zr?= =?us-ascii?Q?yrq3xKIjdC+VhZtNXIDb1eO76JKLLTbINMRDuFKYDO02SyobvufgjMR2nHnN?= =?us-ascii?Q?IKvY50zFrEcMBHqrl1xnsuk6InoCCxh0rTtFbDnCd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7tx0G4j0YoFIYFlbLO+HtNlXyp/wbp3Kd22fCD4hdeMFq84sr2bW5NKlvlUCbSNAg6yBGM5K3SrzwI/sCDrpxhuWBBapah4aPcaAm9Xz2Kk7Q6xI30aAXFBZ2IBnj2EM= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 12:49:23.4437 (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: 803 Lines: 26 vfree() can be used in any atomic context now, thus there is no point in vfree_atomic(). This reverts commit 8d5341a6260a ("x86/ldt: use vfree_atomic() to free ldt entries") Signed-off-by: Andrey Ryabinin Reviewed-by: Thomas Gleixner --- arch/x86/kernel/ldt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c index d4a1583..f09df2f 100644 --- a/arch/x86/kernel/ldt.c +++ b/arch/x86/kernel/ldt.c @@ -93,7 +93,7 @@ static void free_ldt_struct(struct ldt_struct *ldt) paravirt_free_ldt(ldt->entries, ldt->size); if (ldt->size * LDT_ENTRY_SIZE > PAGE_SIZE) - vfree_atomic(ldt->entries); + vfree(ldt->entries); else free_page((unsigned long)ldt->entries); kfree(ldt); -- 2.10.2