Re: 2.6.26-rc5-mm2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lee Schermerhorn <Lee.Schermerhorn@...>
Cc: Nick Piggin <nickpiggin@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <kernel-testers@...>, <linux-mm@...>
Date: Tuesday, June 10, 2008 - 12:50 pm

On Tue, 10 Jun 2008, Lee Schermerhorn wrote:

The ordering of lru_cache_add*, page_add_*_rmap and set_pte_at does
not matter (but update_mmu_cache must come after set_pte_at not before).

Even if the page table lock were not held across them (it is), I think
their ordering would not matter much (just benign races); though it's
always worth keeping in mind that once you've done the lru_cache_add,
that page is now visible to vmscan.c.

But I'm all in favour of you imposing consistency there (as part of
a wider patch? perhaps not; and do_swap_page does now look out of step).
It can sometimes help when inserting debug checks e.g. on page_mapcount.

I think you'll find the lru_cache_add_active_or_noreclaim could
actually be moved into page_add_new_rmap - I found that helpful when
working on eliminating the PageSwapCache flag (work now grown out of
date, I'm afraid), to know that the page was not publicly visible
until I did lru_cache_add_active at the end of page_add_new_rmap.

Hugh
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc5-mm2, Andrew Morton, (Tue Jun 10, 1:31 am)
pnp changes -&gt; suspend oops [Was: 2.6.26-rc5-mm2], Jiri Slaby, (Wed Jun 11, 2:08 pm)
Re: pnp changes -&gt; suspend oops [Was: 2.6.26-rc5-mm2], Bjorn Helgaas, (Wed Jun 11, 3:03 pm)
Re: pnp changes -&gt; suspend oops [Was: 2.6.26-rc5-mm2], Bjorn Helgaas, (Thu Jun 12, 5:22 pm)
Re: pnp changes -&gt; suspend oops [Was: 2.6.26-rc5-mm2], Bjorn Helgaas, (Thu Jun 12, 5:57 pm)
Re: pnp changes -&gt; suspend oops [Was: 2.6.26-rc5-mm2], Bjorn Helgaas, (Fri Jun 13, 1:23 pm)
2.6.26-rc5-mm2: OOM with 1G free swap, Alexey Dobriyan, (Wed Jun 11, 2:00 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Andrew Morton, (Wed Jun 11, 2:27 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Rik van Riel, (Wed Jun 11, 8:57 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Nick Piggin, (Wed Jun 11, 9:44 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, KOSAKI Motohiro, (Wed Jun 11, 2:36 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Frederik Deweerdt, (Wed Jun 11, 3:31 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Nick Piggin, (Wed Jun 11, 2:31 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Nick Piggin, (Wed Jun 11, 2:15 am)
Re: 2.6.26-rc5-mm2: OOM with 1G free swap, Nick Piggin, (Wed Jun 11, 2:11 am)
Re: 2.6.26-rc5-mm2 (compile error in mm/memory_hotplug.c), Yasunori Goto, (Tue Jun 10, 10:26 pm)
Re: 2.6.26-rc5-mm2 compile error in vmscan.c, Helge Hafting, (Tue Jun 10, 7:50 am)
Re: 2.6.26-rc5-mm2 compile error in vmscan.c, Andrew Morton, (Tue Jun 10, 2:37 pm)
Re: 2.6.26-rc5-mm2 compile error in vmscan.c, Helge Hafting, (Thu Jun 12, 4:13 am)
Re: 2.6.26-rc5-mm2 compile error in vmscan.c, Johannes Weiner, (Tue Jun 10, 8:23 am)
Re: 2.6.26-rc5-mm2, Nick Piggin, (Tue Jun 10, 3:28 am)
Re: 2.6.26-rc5-mm2, Lee Schermerhorn, (Tue Jun 10, 11:34 am)
Re: 2.6.26-rc5-mm2, Hugh Dickins, (Tue Jun 10, 12:50 pm)
Re: 2.6.26-rc5-mm2, Andrew Morton, (Tue Jun 10, 4:34 am)
Re: 2.6.26-rc5-mm2, Nick Piggin, (Tue Jun 10, 4:48 am)
Re: 2.6.26-rc5-mm2, Rik van Riel, (Wed Jun 11, 2:09 pm)
Re: 2.6.26-rc5-mm2, Nick Piggin, (Wed Jun 11, 7:58 pm)
Re: 2.6.26-rc5-mm2, Rik van Riel, (Thu Jun 12, 3:29 pm)
Re: 2.6.26-rc5-mm2 (swap_state.c:77), Hugh Dickins, (Thu Jun 12, 5:15 pm)
Re: 2.6.26-rc5-mm2 (swap_state.c:77), Rik van Riel, (Fri Jun 13, 1:45 pm)
Re: 2.6.26-rc5-mm2 (swap_state.c:77), Hugh Dickins, (Fri Jun 13, 5:15 pm)
Re: 2.6.26-rc5-mm2 (swap_state.c:77), Rik van Riel, (Fri Jun 13, 6:03 pm)
Re: 2.6.26-rc5-mm2, Andrew Morton, (Tue Jun 10, 5:15 am)
Re: 2.6.26-rc5-mm2, Rik van Riel, (Tue Jun 10, 8:34 am)
Re: 2.6.26-rc5-mm2, Nick Piggin, (Tue Jun 10, 2:12 am)