linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.cz>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: mgorman@suse.de, linux-mm@kvack.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: mm: page_alloc: avoid marking zones full prematurely after zone_reclaim()
Date: Wed, 27 Mar 2013 18:13:38 +0100	[thread overview]
Message-ID: <20130327171338.GP16579@dhcp22.suse.cz> (raw)
In-Reply-To: <20130327165556.GA22966@dhcp22.suse.cz>

And just for record. I wanted to give credit to Dan for reporting this
but I have no idea how when this gets merged into the original patch
which is still sitting in the -mm queue. I will leave that to Andrew ;)

On Wed 27-03-13 17:55:56, Michal Hocko wrote:
> From b60e75c65b855a0df827a28a509e6761b4cf45dd Mon Sep 17 00:00:00 2001
> From: Michal Hocko <mhocko@suse.cz>
> Date: Wed, 27 Mar 2013 17:53:09 +0100
> Subject: [PATCH] mm:
>  mm-page_alloc-avoid-marking-zones-full-prematurely-after-zone_reclaim-fix
> 
> Dan Carpenter has reported that (alloc_flags & ALLOC_WMARK_MIN) test
> doesn't make much sense as the flag is 0 and it is in fact intended for
> wmark indexing rather than being used as a flag.
> 
> Signed-off-by: Michal Hocko <mhocko@suse.cz>
> ---
>  mm/page_alloc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index aa4b5c2..071e66a 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1953,7 +1953,7 @@ zonelist_scan:
>  				 * when the watermark is between the low and
>  				 * min watermarks.
>  				 */
> -				if ((alloc_flags & ALLOC_WMARK_MIN) ||
> +				if (((alloc_flags & ALLOC_WMARK_MASK) == ALLOC_WMARK_MIN) ||
>  				    ret == ZONE_RECLAIM_SOME)
>  					goto this_zone_full;
>  
> -- 
> 1.7.10.4
> 
> -- 
> Michal Hocko
> SUSE Labs
> 
> --
> 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>

-- 
Michal Hocko
SUSE Labs

--
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>

  reply	other threads:[~2013-03-27 17:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  6:01 Dan Carpenter
2013-03-27 16:55 ` Michal Hocko
2013-03-27 17:13   ` Michal Hocko [this message]
2013-04-01 11:13   ` Dan Carpenter
2013-04-02  9:55     ` Michal Hocko
2013-04-02 10:37     ` Mel Gorman

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=20130327171338.GP16579@dhcp22.suse.cz \
    --to=mhocko@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=dan.carpenter@oracle.com \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    /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