diff options
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,7 +25,7 @@ | |||
25 | * mm->mmap_sem | 25 | * mm->mmap_sem |
26 | * page->flags PG_locked (lock_page) | 26 | * page->flags PG_locked (lock_page) |
27 | * mapping->i_mmap_mutex | 27 | * mapping->i_mmap_mutex |
28 | * anon_vma->lock | 28 | * anon_vma->mutex |
29 | * mm->page_table_lock or pte_lock | 29 | * mm->page_table_lock or pte_lock |
30 | * zone->lru_lock (in mark_page_accessed, isolate_lru_page) | 30 | * zone->lru_lock (in mark_page_accessed, isolate_lru_page) |
31 | * swap_lock (in swap_duplicate, swap_info_get) | 31 | * swap_lock (in swap_duplicate, swap_info_get) |
@@ -40,7 +40,7 @@ | |||
40 | * | 40 | * |
41 | * (code doesn't rely on that order so it could be switched around) | 41 | * (code doesn't rely on that order so it could be switched around) |
42 | * ->tasklist_lock | 42 | * ->tasklist_lock |
43 | * anon_vma->lock (memory_failure, collect_procs_anon) | 43 | * anon_vma->mutex (memory_failure, collect_procs_anon) |
44 | * pte map lock | 44 | * pte map lock |
45 | */ | 45 | */ |
46 | 46 | ||
@@ -307,7 +307,7 @@ static void anon_vma_ctor(void *data) | |||
307 | { | 307 | { |
308 | struct anon_vma *anon_vma = data; | 308 | struct anon_vma *anon_vma = data; |
309 | 309 | ||
310 | spin_lock_init(&anon_vma->lock); | 310 | mutex_init(&anon_vma->mutex); |
311 | atomic_set(&anon_vma->refcount, 0); | 311 | atomic_set(&anon_vma->refcount, 0); |
312 | INIT_LIST_HEAD(&anon_vma->head); | 312 | INIT_LIST_HEAD(&anon_vma->head); |
313 | } | 313 | } |
@@ -1143,7 +1143,7 @@ out_mlock: | |||
1143 | /* | 1143 | /* |
1144 | * We need mmap_sem locking, Otherwise VM_LOCKED check makes | 1144 | * We need mmap_sem locking, Otherwise VM_LOCKED check makes |
1145 | * unstable result and race. Plus, We can't wait here because | 1145 | * unstable result and race. Plus, We can't wait here because |
1146 | * we now hold anon_vma->lock or mapping->i_mmap_mutex. | 1146 | * we now hold anon_vma->mutex or mapping->i_mmap_mutex. |
1147 | * if trylock failed, the page remain in evictable lru and later | 1147 | * if trylock failed, the page remain in evictable lru and later |
1148 | * vmscan could retry to move the page to unevictable lru if the | 1148 | * vmscan could retry to move the page to unevictable lru if the |
1149 | * page is actually mlocked. | 1149 | * page is actually mlocked. |