All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Juergen Gross <jgross@suse.com>
Cc: linux-mm@kvack.org, mhocko@suse.com,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	xen-devel@lists.xenproject.org
Subject: Re: [RESEND v2] mm: don't defer struct page initialization for Xen pv guests
Date: Fri, 16 Feb 2018 12:43:57 -0800	[thread overview]
Message-ID: <20180216124357.de2cb8fe96c07dea51556adb__7534.95782050795$1518813776$gmane$org@linux-foundation.org> (raw)
In-Reply-To: <20180216154101.22865-1-jgross@suse.com>

On Fri, 16 Feb 2018 16:41:01 +0100 Juergen Gross <jgross@suse.com> wrote:

> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -347,6 +347,9 @@ static inline bool update_defer_init(pg_data_t *pgdat,
>  	/* Always populate low zones for address-constrained allocations */
>  	if (zone_end < pgdat_end_pfn(pgdat))
>  		return true;
> +	/* Xen PV domains need page structures early */
> +	if (xen_pv_domain())
> +		return true;

I'll do this:

--- a/mm/page_alloc.c~mm-dont-defer-struct-page-initialization-for-xen-pv-guests-fix
+++ a/mm/page_alloc.c
@@ -46,6 +46,7 @@
 #include <linux/stop_machine.h>
 #include <linux/sort.h>
 #include <linux/pfn.h>
+#include <xen/xen.h>
 #include <linux/backing-dev.h>
 #include <linux/fault-inject.h>
 #include <linux/page-isolation.h>

So we're not relying on dumb luck ;)

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-02-16 20:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16 15:41 [RESEND v2] mm: don't defer struct page initialization for Xen pv guests Juergen Gross
2018-02-16 15:41 ` Juergen Gross
2018-02-16 20:40 ` Andrew Morton
2018-02-16 20:40   ` Andrew Morton
2018-02-17 15:32   ` Pavel Tatashin
2018-02-17 15:32     ` Pavel Tatashin
2018-02-17 15:32   ` Pavel Tatashin
2018-02-16 20:40 ` Andrew Morton
2018-02-16 20:43 ` Andrew Morton
2018-02-16 20:43   ` Andrew Morton
2018-02-16 20:43 ` Andrew Morton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-16 15:41 Juergen Gross

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='20180216124357.de2cb8fe96c07dea51556adb__7534.95782050795$1518813776$gmane$org@linux-foundation.org' \
    --to=akpm@linux-foundation.org \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=stable@vger.kernel.org \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.