re: mm: page_alloc: avoid marking zones full prematurely after zone_reclaim()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Mel Gorman,

The patch 290d1a3ce0ec: "mm: page_alloc: avoid marking zones full 
prematurely after zone_reclaim()" from Mar 23, 2013, leads to the 
following warning:
"mm/page_alloc.c:1957 get_page_from_freelist()
	 warn: bitwise AND condition is false here"

mm/page_alloc.c
  1948                                  /*
  1949                                   * Failed to reclaim enough to meet watermark.
  1950                                   * Only mark the zone full if checking the min
  1951                                   * watermark or if we failed to reclaim just
  1952                                   * 1<<order pages or else the page allocator
  1953                                   * fastpath will prematurely mark zones full
  1954                                   * when the watermark is between the low and
  1955                                   * min watermarks.
  1956                                   */
  1957                                  if ((alloc_flags & ALLOC_WMARK_MIN) ||
                                                           ^^^^^^^^^^^^^^^
This is zero.

  1958                                      ret == ZONE_RECLAIM_SOME)
  1959                                          goto this_zone_full;

[snip]

  2333  static inline int
  2334  gfp_to_alloc_flags(gfp_t gfp_mask)
  2335  {
  2336          int alloc_flags = ALLOC_WMARK_MIN | ALLOC_CPUSET;
                                  ^^^^^^^^^^^^^^^
  2337          const gfp_t wait = gfp_mask & __GFP_WAIT;

regards,
dan carpenter

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]