Ulrich Drepper <[EMAIL PROTECTED]> writes: > to free: mmap(PROT_NONE) over the area
Why do you need a lock for that? I don't see any problem with two threads doing that in parallel. The kernel would serialize it internally and one would fail, but that shouldn't be a problem. Of course having the lock should also not make much difference -- if glibc doesn't do it then it kernel would anyways and run into the same scalability issue on mmap_sem. -Andi - 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/