Re: [PATCH v2] mm/rmap: fix BUG at rmap_walk

From: Sasha Levin
Date: Thu Dec 19 2013 - 00:00:11 EST


On 12/18/2013 11:29 PM, Wanpeng Li wrote:
PageLocked is not required by page_referenced_anon() and there is not
>any assertion before, commit 37f093cdf introduced this extra BUG_ON()
There are two callsites shrink_active_list and page_check_references()
of page_referenced(). shrink_active_list and its callee won't lock anonymous
page, however, page_check_references() is called with anonymous page
lock held in shrink_page_list. So page_check_references case need
specail handling.

This explanation seems to be based on current observed behaviour.

I think it would be easier if you could point out the actual code in each
function that requires a page to be locked, once we have that we don't have
to care about what the callers currently do.


Thanks,
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/