Re: [RFC PATCH 1/8] mm, vmalloc: change iterating a vmlist to find_vm_area()
From: JoonSoo Kim <hidden>
Date: 2012-12-07 13:40:12
Also in:
kexec, lkml
From: JoonSoo Kim <hidden>
Date: 2012-12-07 13:40:12
Also in:
kexec, lkml
Hello, Pekka. 2012/12/7 Pekka Enberg [off-list ref]:
On Thu, Dec 6, 2012 at 6:09 PM, Joonsoo Kim [off-list ref] wrote:quoted
The purpose of iterating a vmlist is finding vm area with specific virtual address. find_vm_area() is provided for this purpose and more efficient, because it uses a rbtree. So change it.You no longer take the 'vmlist_lock'. This is safe, because...?
As Bob mentioned, find_vm_area() hold a 'vmap_area_lock' during searching a area. When we hold a 'vmap_area_lock', area can't be removed. So this change is safe. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>