From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id CE8CA6B039F for ; Wed, 12 Apr 2017 08:49:27 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id j186so20287698oia.14 for ; Wed, 12 Apr 2017 05:49:27 -0700 (PDT) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00091.outbound.protection.outlook.com. [40.107.0.91]) by mx.google.com with ESMTPS id x68si6324399oif.260.2017.04.12.05.49.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 05:49:27 -0700 (PDT) From: 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> 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 Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Andrey Ryabinin , penguin-kernel@I-love.SAKURA.ne.jp, mhocko@kernel.org, linux-mm@kvack.org, hpa@zytor.com, chris@chris-wilson.co.uk, hch@lst.de, mingo@elte.hu, jszhang@marvell.com, joelaf@google.com, joaodias@google.com, willy@infradead.org, tglx@linutronix.de, thellstrom@vmware.com 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org