Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933195AbdC3K0Y (ORCPT ); Thu, 30 Mar 2017 06:26:24 -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 S932250AbdC3K0T (ORCPT ); Thu, 30 Mar 2017 06:26:19 -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 2/4] x86/ldt: use vfree() instead of vfree_atomic() Date: Thu, 30 Mar 2017 13:27:17 +0300 Message-ID: <20170330102719.13119-2-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: 5cae95b4-6aa8-4662-5d17-08d477573124 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:HE1PR0801MB2058; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2058;3:ipmhk489E3Zj3ekZzJ27hdAWUHzQhNKZe3SwO7zyJ1egRaLD/IOFYUHOFsSmKmhPIn+eFKpnd57xkRk7veRuYLtG1/GScUesboW0CSngJ8XRv1bHNXJhV5PXJxIXVTLP0MCJ6LP3f+g5buJ+ZFanajr/29reWGaO/5uKBMauRotTp7dtBQ7DT3CcsgoSlxTAX1u2pF9kAvU1Qns0BVlHhEPUDcwIWzm+DASxjPH+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65ednkXQQ4E0X2plcaOCt+d8uaKxkShvul7Sa+XOaeXfriMYMd0O9HL9rWc42kbtJIoh3hDkWe/zSMx9QRupc1eLCwXuFqLhlxDbc5xsPHBKUju1my4a+hLajC0d0cqWI3wRDjt9QbV+N3DO+M/1U2Qs+x5BW+9K7tvXT5tFjSvrE+pS9YwFfRSB/77Yzwe3shmQm3O9otU4mRfFFyUlbocufN6BORRlOWxC4I= 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:XYcJOdkzXlrAKYEoWErJiXuGLPYOTDWtnYnIHXjqpdu4WR/0axtb2nD5MnJztfpndu9PHbTGBcaFMGHhlw68h5IJueH3+ToIhgseQAACFJ3zyJpa31O7VufKMbZMoQDpwB4nj+854u+qREe/zYg37OGX2D5u5Vvjwj0xjIqN5iSggiZfvvwdjS/KN1Wm7mEBope5zzxmq8niZRC2GtPn0Q/39ats9rhVPdnQMhNdk5xrdUK8vqH5jS6pgalUxX8YuYZZPTEYeOp0/snPYjz4fegxLSrmx0RAuEU/NejAiapBOqBotTynEEuqKg1of1Fpu8ch4NG5Tj/YgJjVF28DUE5EYI/Hw5DJG6U4Q+4EFyX2pTl7BqyXeIVMqV9rS71oU93DnK01vQpxba3znvr6HDG/dXXIpwT9ZGppK4M62l1f/HFMuRJ+YLfPyJxysT3Y6xO+NrBN1+GcYypfTQ8vWiax4CIqm2s3ernrydNPQku09Fr5dfvbgS1dTezUU8T/kghhqupEz6xeJjjkTL91eBcRJs/K3Pr5ZOjKRV6t7raBx7/VNlGamgwtNwUa2fOY/pggpdR2hZZdaQQIQkw2tpa6BzQ+izZ5lKPRw4DCqoznlegxXH00ac9zSrmUzc3DNQSLGTMVHViwaRI9L5XI+zKpmfl/TGQtiJlg5tXOM3o= 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:m34K0XI7fULQXdb8cwT28cCYLaGtCbLKLsWG+qj?= =?us-ascii?Q?zSGKSeHNiMEC5A9K/sDyNGefH1JyRepjfykulltOSZus10nlqZh6BYy/VU0S?= =?us-ascii?Q?EhRa0B5zHWUw2M4+/MJOQzOibGAaNCpeSynGU4RsmG5+wluYKKCGQMHY7DEL?= =?us-ascii?Q?WSegH0uTdxRDTzlWE/xgSf0EOfDuqHakbtfinCktA7VJD6vofBIxYoJov2R7?= =?us-ascii?Q?TyRtUpU8bQtVidhnEYenuRQyjKGypzjdWw4aiwdIM2w9XuRZgRoUoVU/9EpC?= =?us-ascii?Q?LqdBpHcnZIle51mz6mb3UtgwmSoPa+Mitf26asAsg8QbzddnxmLWtP8+8gZQ?= =?us-ascii?Q?u/+nup355VfCO2T1ekobua/wBQCKG5tBWvw81PKmrqD2EG7m3tOmLR0wW7qM?= =?us-ascii?Q?vI7KVus5rcmh6CIYMg+PJttN9/T9GEQ8V3kEb13A5vIh3eywk58sHaHFoaf0?= =?us-ascii?Q?KnVsqiItidbp5PyZetVJbalEmiZX4gVYWIZvWfjY9QxCaKZofvqIbMAl2V4v?= =?us-ascii?Q?pCo1tWE3XthcyWWRhcTQiGNUW/jqZb5uD1XlgnYcKIvzVce8FZhVy4PVMr/w?= =?us-ascii?Q?T4prFnGkJytWcwFCnJ6f4fz6r8nNVGctUTLm1mObgZMGvfV+6Slxb0hxljP2?= =?us-ascii?Q?z80wwVFzH0aNnoMwKk26iLRhNRFJ/thwtU1HA0Zoty/t4U5kaV2jzkMiLO/f?= =?us-ascii?Q?MTqgfIbdPyIrPAB79qZGF+KLx5kpT+jYnsFfrVQzFA4mOKCDTI7sfiEinDSQ?= =?us-ascii?Q?GSsJb1E60c2EhJgbdtGkMDPbl/sfha0OdNZJlV42ccIUUjONzfSe3CRRrRim?= =?us-ascii?Q?fNctx7mHVbr2eIpKkdYb8DWdEnPzDj4kKI/GkY0zWlTORNfXLtKE2p8FL1zq?= =?us-ascii?Q?8adZHb630b5SPckIYB3Y8PLaxxrOpU3VouUe0Me3zhRhIzjbpskCHCEEHyGM?= =?us-ascii?Q?pw/CgZg0KJwTiaLejttbAQfNuqq5KxQ6d22GG2xAlvYfuq+AG4KeHI4fVbOw?= =?us-ascii?Q?ISqssp6owjbCV7OeijuIhVWpluJEoNOLV7iTFqAq88X6k/Bv/p3dofGjHvoK?= =?us-ascii?Q?TI73xEk40/B7+epI00Hf8iJ4AFm8tmFosZLHEK9c+PvgAEDwScg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2058;6:vnnEKKRVBfzmJ99hk2dLBQQYMljFjg7C2rSRnEK1zs37XfKZpN3FmqKJaEncgEuCJX4qSugte9dY3B7O1e8kk+TcEjOuznmu4y3qaliMtoU/NURq6SV09d7XyRD5LCc9Dga0Pf2wfWDPy2NoO7SpFQ+SNudApv31TfwEt7F3IgBMe282N5FysxCANn6PXCLHbWEc1XHrUyO6dH3TxoHgfitFNW37T3Oa5RD33XE6sYPgMylDm6comElkKO7u0qyIWIFLViaJ9cwECK/CZDJy3vFrjeXIfVhfB8EV5LbUdtF3D74Ms3t9TpzD9mpMxtZbJFwlbU53e1WMwtITufoPEeQXFMzXb5sA6PEkrIv+lz1AsuiH0kQYZM374+zTaqVQi315QORtCs+Z2FVwAkc3IQ==;5:zlHmuzrkkTsvLL06MO0xf1134l7pAxnA62yIvPZtuAjtx2HjSEA0P2uyXXj65vXn53tNJApJ6DwDRKiqHdONl/MGbCZnr6TjmRu2BYqJwXCzxO1wh1XTVlUW1WzJkT9NdhBuj8wj0dM9LJ3hFxlfpQ==;24:hMo/waedYni4x/gTD/F+VP98fBpFf6eynK6GkE568i9tYihXCj6dSLcoV5XS4jNUzlnp+MOwRkriZEg+Bl62E8W2Xlte/KrIB5kk2FFrWdU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2058;7:nCAm4rSNQ98a4inLqoD53VGowMgFJPyAjzjG/kJO017E20NlYu2epeWZ/QyGlNTwX37ssRgunds+ARILXcNpzlNHGVKwIJhddp99AAmDUIoFz8bkZ4NZybEfEQXV99W4YysqY06LZBvcNsYJ0cEf5p4l/D2VcYadgcin5FqOg78yGmOT/s0zOHjGzwV+cmrTqGLY37AKzfC4OFis6JS1NVEptuPzBKY9uMu4jtuChPfZhN3T/zJAuoMBbS2ZMy8TOdeByGKNOzEXQltYh0aAK1uMVyAe8KHcyFy2jcPbgrk+5PIbShXVSnOkoeu5iKGE3MGTEKnSCLK30ZIl6s3g8A==;20:bT933ApPmRkMdUo7pCiy2TKeYXRhyy0GOeAUBJdKgiXdTB0dUPgAUzO8Uaq5u7pEC30Q5ZUh4HAAhyNE1L71eHAnqaAj4i2RbHtrEX0iJdO1tl7f5FaJc/WE/EWHZH6yC0crKD8bG1lcSEb/sMHMR/THk4ikeZsIfLGdVkxJixY= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2017 10:26:12.3798 (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: 753 Lines: 25 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 --- 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