Messages in this thread | | | Date | Sun, 11 Apr 2010 17:45:45 -0400 | From | Rik van Riel <> | Subject | Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmas of a mergeable VMA |
| |
On 04/11/2010 01:16 PM, Linus Torvalds wrote:
> Actually, so if it's that race, then we might get rid of the oops with > this total hack.
Another thing I just thought of.
The anon_vma struct will not be reused for something completely different due to the SLAB_DESTROY_BY_RCU flag that the anon_vma_cachep is created with.
The anon_vma_chain structs are allocated from a slab without that flag, so they can be reused for something else in the middle of an RCU section.
Is that something worth fixing, or is this so subtle that we'd rather not have the code rely on this kind of behaviour at all?
| |