Laurent Dufour <ldufour@xxxxxxxxxxxxxxxxxx> writes: > [resent this patch which seems to have not reached the mailing lists] > > Change the mmap_sem to a range lock to allow finer grain locking on > the memory layout of a task. > > This patch rename mmap_sem into mmap_rw_tree to avoid confusion and > replace any locking (read or write) by complete range locking. So > there is no functional change except in the way the underlying locking > is achieved. > > Currently, this patch only supports x86 and PowerPc architectures, > furthermore it should break the build of any others. Thanks for working on this. However as commented before I think the first step to make progress here is a description of everything mmap_sem protects. Surely the init full case could be done shorter with some wrapper that combines the init_full and lock operation? Then it would be likely a simple search'n'replace to move the whole tree in one atomic step to the new wrappers. Initially they could be just defined to use rwsems too to not change anything at all. It would be a good idea to merge such a patch as quickly as possible beause it will be a nightmare to maintain longer term. Then you could add a config to use a range lock through the wrappers. Then after that you could add real ranges step by step, after doing the proper analysis. -Andi -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>