From: Logan Gunthorpe <logang@deltatee.com>
To: "Jérôme Glisse" <jglisse@redhat.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Cc: Andy Lutomirski <luto@kernel.org>, Ingo Molnar <mingo@kernel.org>,
"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>
Subject: Re: [PATCH] x86/mm/hotplug: fix BUG_ON() after hotremove
Date: Tue, 6 Jun 2017 13:50:14 -0600 [thread overview]
Message-ID: <7b8534ee-8d07-8a9a-5b80-c16725033ee9@deltatee.com> (raw)
In-Reply-To: <20170606173512.7378-1-jglisse@redhat.com>
Thanks Jerome! This indeed fixes the bug I reported.
Tested-by: Logan Gunthorpe <logang@deltatee.com>
Logan
On 06/06/17 11:35 AM, JA(C)rA'me Glisse wrote:
> With commit af2cf278ef4f we no longer free pud so that we
> do not have synchronize all pgd on hotremove/vfree. But the
> new 5 level page table code re-added that code f2a6a705 and
> thus we now trigger a BUG_ON() l128 in sync_global_pgds()
>
> This patch remove free_pud() like in af2cf278ef4f
>
> Signed-off-by: JA(C)rA'me Glisse <jglisse@redhat.com>
> Cc: Andy Lutomirski <luto@kernel.org>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> Cc: Logan Gunthorpe <logang@deltatee.com>
> ---
> arch/x86/mm/init_64.c | 19 -------------------
> 1 file changed, 19 deletions(-)
>
> diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
> index a8a9972..8cf7e99 100644
> --- a/arch/x86/mm/init_64.c
> +++ b/arch/x86/mm/init_64.c
> @@ -772,24 +772,6 @@ static void __meminit free_pmd_table(pmd_t *pmd_start, pud_t *pud)
> spin_unlock(&init_mm.page_table_lock);
> }
>
> -static void __meminit free_pud_table(pud_t *pud_start, p4d_t *p4d)
> -{
> - pud_t *pud;
> - int i;
> -
> - for (i = 0; i < PTRS_PER_PUD; i++) {
> - pud = pud_start + i;
> - if (!pud_none(*pud))
> - return;
> - }
> -
> - /* free a pud talbe */
> - free_pagetable(p4d_page(*p4d), 0);
> - spin_lock(&init_mm.page_table_lock);
> - p4d_clear(p4d);
> - spin_unlock(&init_mm.page_table_lock);
> -}
> -
> static void __meminit
> remove_pte_table(pte_t *pte_start, unsigned long addr, unsigned long end,
> bool direct)
> @@ -991,7 +973,6 @@ remove_p4d_table(p4d_t *p4d_start, unsigned long addr, unsigned long end,
>
> pud_base = pud_offset(p4d, 0);
> remove_pud_table(pud_base, addr, next, direct);
> - free_pud_table(pud_base, p4d);
> }
>
> if (direct)
>
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-06-06 19:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 17:35 Jérôme Glisse
2017-06-06 19:50 ` Logan Gunthorpe [this message]
2017-06-07 10:47 ` Kirill A. Shutemov
2017-06-07 14:49 ` Jerome Glisse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b8534ee-8d07-8a9a-5b80-c16725033ee9@deltatee.com \
--to=logang@deltatee.com \
--cc=jglisse@redhat.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@kernel.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox