Prev: Your mailbox has exceeded one or more size limits
Next: KVM: remove unused code in kvm_coalesced_mmio_init()
From: Peter Zijlstra on 12 Apr 2010 11:40 On Tue, 2010-04-13 at 00:17 +0900, Minchan Kim wrote: > > Concurrent reclaim/gup/whatever could still have a count out on the page > > delaying the actual free beyond the tlb gather RCU section. > > anon_vma lock is just valid in case of page_mapped. > if reclaim/gup/whatever want to use anon_vma, it should check with page_mapped. > And last put_page doesn't touch anon_vma for freeing the page so I > think it's not a problem. Do I miss something? Hmm, I think you're right. The race I was thinking of makes the page_lock_anon_vma() RCU section overlap with that of the mmu_gather, which ensures the thing is long enough, or hits the !_mapcount case. I'm not sure there are other page->mapping users that are interesting. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |