Nick Piggin wrote: > What the tlb flush used to be able to assume is that the page > has been removed from the pagetables when they are put in the > tlb flush batch. I think this is still the case, to a degree. There should be no harm in removing the TLB entries after the page table has been unlocked, right? Or is something like the attached really needed? From what I can see, the page table lock should be enough synchronization between unmap_mapping_range, MADV_FREE and MADV_DONTNEED. I don't see why we need the attached, but in case you find a good reason, here's my signed-off-by line for Andrew :) Signed-off-by: Rik van Riel -- Politics is the struggle between those who want to make their country the best in the world, and those who believe it already is. Each group calls the other unpatriotic.