On Fri, 16 Feb 2001, Linus Torvalds wrote: > This is, actually, a problem that I suspect ends up being _very_ similar > to the zap_page_range() case. zap_page_range() needs to make sure that > everything has been updated by the time the page is actually free'd. While > filemap_sync() needs to make sure that everything has been updated before > the page is written out (or marked dirty - which obviously also guarantees > the ordering, and makes the problems look even more similar). Ah, I see what I was missing. So long as the tlb flush is in between the ptep_test_and_clear_dirty and the set_page_dirty, we're fine (ie the current code is good). If we really want to reduce the number of tlb flushes, yes, we can use the gather code and then just do the set_page_dirty after a tlb_flush_range. -ben - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: x86 ptep_get_and_clear question Manfred Spraul
- Re: x86 ptep_get_and_clear question Jamie Lokier
- Re: x86 ptep_get_and_clear question Manfred Spraul
- Re: x86 ptep_get_and_clear question Jamie Lokier
- Re: x86 ptep_get_and_clear question Manfred Spraul
- Re: x86 ptep_get_and_clear question Jamie Lokier
- Re: x86 ptep_get_and_clear question Linus Torvalds
- Re: x86 ptep_get_and_clear question Manfred Spraul
- Re: x86 ptep_get_and_clear question Ben LaHaise
- Re: x86 ptep_get_and_clear question Linus Torvalds
- Re: x86 ptep_get_and_clear question Ben LaHaise
- Re: x86 ptep_get_and_clear question Linus Torvalds
- Re: x86 ptep_get_and_clear question Jamie Lokier
- Re: x86 ptep_get_and_clear question Manfred Spraul
- Re: x86 ptep_get_and_clear question Jamie Lokier
- Re: x86 ptep_get_and_clear question Hugh Dickins
- Re: x86 ptep_get_and_clear question Ben LaHaise
- Re: x86 ptep_get_and_clear question Linus Torvalds
- Re: x86 ptep_get_and_clear question Ben LaHaise
- Re: x86 ptep_get_and_clear question Linus Torvalds
- Re: x86 ptep_get_and_clear question Jamie Lokier