On Fri, Jun 17, 2011 at 11:32 AM, Peter Zijlstra wrote: > > something like so I guess, completely untested etc.. Having gone over it a bit more, I actually think I prefer to just special-case the allocation instead. We already have to drop the anon_vma lock for the "out of memory" case, and a slight re-organization of clone_anon_vma() makes it easy to just first try a NOIO allocation with the lock still held, and then if that fails do the "drop lock, retry, and hard-fail" case. IOW, something like the attached (on top of the patches already posted except for your memory reclaim thing) Hugh, does this fix the lockdep issue? Linus