Message ID | 20180725140641.30372-2-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B20D2180E for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 14:06:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A216420408 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 14:06:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 961B6206E2; Wed, 25 Jul 2018 14:06:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46BA820408 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 14:06:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED7E46B02B6; Wed, 25 Jul 2018 10:06:56 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E62A36B02B8; Wed, 25 Jul 2018 10:06:56 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D037D6B02B9; Wed, 25 Jul 2018 10:06:56 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id 8B7536B02B8 for <linux-mm@kvack.org>; Wed, 25 Jul 2018 10:06:56 -0400 (EDT) Received: by mail-pg1-f198.google.com with SMTP id r20-v6so4246174pgv.20 for <linux-mm@kvack.org>; Wed, 25 Jul 2018 07:06:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=qIuwOscxl1EW4BeFkvSG6ETyVL4wwncYhTvemKPOb6Q=; b=kqdGVwqLlBj2ZI10MEq5AaenU0FZf+aks9lRWSDYDWVGG1GbZs7vxgydv/3tQZiKgA jyjGdvK5IkukZKTl7F90OJYOIt6RUFZKJoQ+yiE27izWLV4AL32aXUOy/HesbpxWydnv H/QDUB/X2Ulhevh5pALsT8P0WYOu15OZl5aD8L+qN0PgRL+4Ryr5Qy3Uj5WhJYKMW6sz 50QwtKY/4seXD6XHsNqHVwXjfXtrs501yPjsHqFN0ZJ0kbvBa8j/xLGPquQr0jYe8VGd l5fkxKLx9kfS26FZvQ50osmdEmrXK2MqVDXDTMCmDdhFq9BAdWX86BvnnO3yLqDwDvl3 kAgw== X-Gm-Message-State: AOUpUlF6GdmmSEaWLdkOze15NFiLoh3Kaka1xh36U+M1pW/Q2HQ1alNA gKdh2jG8Ja9G0DjZeeUUwKliAl2HkxOxabNLKoylKXfbiwjLMuR8TnnTC4/Xhxuj81EQjARuosZ TJsFJkr2gelxaUw9084CbnL+kLYhRT3g1GK1iHLT2K1Lkz2Rm4ypi/GfOiSVOGlVtalpCii1Tpy f3yTNxAOHoDKuB26XRQ0SwMkBEurRuXr4LzU9kpOje8wozReQRQcXlFMNBWCRn+2QtaC6hTypwg o3v/Jg62TI86r0nb0aVO+ol38aw7ykjDnaMKQ2OSckEb9jMzcP9/5it2UYLWFvopiVos8O/+I7a /zpsRqxmLx8ub89GVhqNDoFeWMaU5VpFY3/xFZpF1QUaCV7k4LG4uftFVM7G+VlQwc8ukD1UvQk D X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr21513145plc.310.1532527616251; Wed, 25 Jul 2018 07:06:56 -0700 (PDT) X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr21513110plc.310.1532527615560; Wed, 25 Jul 2018 07:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532527615; cv=none; d=google.com; s=arc-20160816; b=eIudEgp8ryMUWnVZmom4mMzAc/v2mnH5eW6NwDp4zSngZ4i1zONBPG+pA1YkrHEZWW vPUQmDpSzfbp9nekx3k/fVqZQbwezEQLFGPamJpHB6dqLfiYO0WvuLWut4ePv/FT3Li2 NUogAp5f6wxZAG+pW5e+SP4xKyzg2gMsHQ+L4wvY9k1NbvKWECqy3OJvrKdztJ8xfhTq uUCMp2ld80TXcGX7Vwb98usOgNnURRNOetZ1K2+i+1x55+CPhIr8p0OuXnZGN9HgAs0z DTM3dFw1cqGiazRi3wv2adOkviI7CS/UjZ+nFZccpwWkoqtb1gooTdJXwd/F/H9aYCq3 ArGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qIuwOscxl1EW4BeFkvSG6ETyVL4wwncYhTvemKPOb6Q=; b=rNmWi6ywmsII66xd7PqoiphMwfecvrL/Z7eZmjYKb9mGyndlTJm8Z7BtY20oDmqPMn zssMBm+aUK3m9lUL4K2pfJ4OAceBnEkfI0aCKNOA+g2rOZltez6KY6TKE+ayr0u9dhpF Xm2Ca/utY6kkUjKF1bbDf7PPpUtkHGSBGDLlC9GzrKlURRWMwjZCEfGDFT/I2sARSJag YAIVv/7GUtKOC+sYbM2niQk/hgrnroatExWJN3X8EjQos4GQzBYTkKkiATgmjA/DMy4Z ACMpd/5FOJ7zMq8ujIyIB6GCt8NfjQOaPY4G3JeKo+W0C0Sc8WzxCL/zrCWzAoInGYXU TKZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dzwz6C7k; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h6-v6sor3627918pgb.415.2018.07.25.07.06.55 for <linux-mm@kvack.org> (Google Transport Security); Wed, 25 Jul 2018 07:06:55 -0700 (PDT) Received-SPF: pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dzwz6C7k; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qIuwOscxl1EW4BeFkvSG6ETyVL4wwncYhTvemKPOb6Q=; b=dzwz6C7ksXXQUMV7dQjFsq+iLH4YhL4uk/iB+Bxk0woJ/mzxIeP+44zCyoQ36g30+P 6ug7/AVQxzn1Qb/Wq9Myr07U8uH4d1n5mGVHBURmbp3DM/dSZkPTXA4KAvirXXDtsrb6 a59RxONojKXjsmW98j8qJOYWW2/S63AL6zWxeZUoOuw8Vv1ITBDIHqqys1KDDg5CulUw U0vWA1AIq9Rhsiecum0dpBKgLF3nXsW/pWWdUGdJ0L/96+xh/Pkd2fJWwFOQXBvYzVnB qluufQQSbzmh+J7kD+Wl2psjbZmnNoxeALjDYjs1gk3Lxba/EBJa4WwVMfGEBa92Vfma a2ig== X-Google-Smtp-Source: AAOMgpfwf14R92RD5z2T+Q6XLzanWkVmVxsh3MPbqEVttaK81oTV2itdmfykO/Td2y3hCxZfnhMX+Q== X-Received: by 2002:a63:4450:: with SMTP id t16-v6mr20744377pgk.102.1532527615190; Wed, 25 Jul 2018 07:06:55 -0700 (PDT) Received: from roar.au.ibm.com ([61.69.188.107]) by smtp.gmail.com with ESMTPSA id d132-v6sm20923421pga.10.2018.07.25.07.06.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 07:06:54 -0700 (PDT) From: Nicholas Piggin <npiggin@gmail.com> To: linux-mm@kvack.org Cc: Nicholas Piggin <npiggin@gmail.com>, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 1/4] mm: move tlb_table_flush to tlb_flush_mmu_free Date: Thu, 26 Jul 2018 00:06:38 +1000 Message-Id: <20180725140641.30372-2-npiggin@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180725140641.30372-1-npiggin@gmail.com> References: <20180725140641.30372-1-npiggin@gmail.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: mmu_gather changes to support explicit paging
|
expand
|
diff --git a/mm/memory.c b/mm/memory.c index 7206a634270b..bc053d5e9d41 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -245,9 +245,6 @@ static void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) tlb_flush(tlb); mmu_notifier_invalidate_range(tlb->mm, tlb->start, tlb->end); -#ifdef CONFIG_HAVE_RCU_TABLE_FREE - tlb_table_flush(tlb); -#endif __tlb_reset_range(tlb); } @@ -255,6 +252,9 @@ static void tlb_flush_mmu_free(struct mmu_gather *tlb) { struct mmu_gather_batch *batch; +#ifdef CONFIG_HAVE_RCU_TABLE_FREE + tlb_table_flush(tlb); +#endif for (batch = &tlb->local; batch && batch->nr; batch = batch->next) { free_pages_and_swap_cache(batch->pages, batch->nr); batch->nr = 0;
There is no need to call this from tlb_flush_mmu_tlbonly, it logically belongs with tlb_flush_mmu_free. This allows some code consolidation with a subsequent fix. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- mm/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)