/Linux-v5.4/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 99 down_read(¤t->mm->mmap_sem); in __copy_to_user_memcpy() 107 up_read(¤t->mm->mmap_sem); in __copy_to_user_memcpy() 111 down_read(¤t->mm->mmap_sem); in __copy_to_user_memcpy() 131 up_read(¤t->mm->mmap_sem); in __copy_to_user_memcpy() 168 down_read(¤t->mm->mmap_sem); in __clear_user_memset() 175 up_read(¤t->mm->mmap_sem); in __clear_user_memset() 178 down_read(¤t->mm->mmap_sem); in __clear_user_memset() 196 up_read(¤t->mm->mmap_sem); in __clear_user_memset()
|
/Linux-v5.4/arch/microblaze/mm/ |
D | fault.c | 140 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault() 145 down_read(&mm->mmap_sem); in do_page_fault() 252 up_read(&mm->mmap_sem); in do_page_fault() 263 up_read(&mm->mmap_sem); in do_page_fault() 282 up_read(&mm->mmap_sem); in do_page_fault() 290 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/x86/mm/ |
D | debug_pagetables.c | 19 down_read(¤t->mm->mmap_sem); in ptdump_curknl_show() 21 up_read(¤t->mm->mmap_sem); in ptdump_curknl_show() 32 down_read(¤t->mm->mmap_sem); in ptdump_curusr_show() 34 up_read(¤t->mm->mmap_sem); in ptdump_curusr_show()
|
/Linux-v5.4/arch/nios2/mm/ |
D | fault.c | 86 if (!down_read_trylock(&mm->mmap_sem)) { in do_page_fault() 90 down_read(&mm->mmap_sem); in do_page_fault() 175 up_read(&mm->mmap_sem); in do_page_fault() 183 up_read(&mm->mmap_sem); in do_page_fault() 221 up_read(&mm->mmap_sem); in do_page_fault() 228 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/fs/proc/ |
D | task_nommu.c | 28 down_read(&mm->mmap_sem); in task_mem() 80 up_read(&mm->mmap_sem); in task_mem() 89 down_read(&mm->mmap_sem); in task_vsize() 94 up_read(&mm->mmap_sem); in task_vsize() 107 down_read(&mm->mmap_sem); in task_statm() 122 up_read(&mm->mmap_sem); in task_statm() 214 if (down_read_killable(&mm->mmap_sem)) { in m_start() 224 up_read(&mm->mmap_sem); in m_start() 234 up_read(&priv->mm->mmap_sem); in m_stop()
|
/Linux-v5.4/arch/sparc/mm/ |
D | fault_32.c | 199 down_read(&mm->mmap_sem); in do_sparc_fault() 276 up_read(&mm->mmap_sem); in do_sparc_fault() 284 up_read(&mm->mmap_sem); in do_sparc_fault() 333 up_read(&mm->mmap_sem); in do_sparc_fault() 341 up_read(&mm->mmap_sem); in do_sparc_fault() 388 down_read(&mm->mmap_sem); in force_user_fault() 413 up_read(&mm->mmap_sem); in force_user_fault() 416 up_read(&mm->mmap_sem); in force_user_fault() 421 up_read(&mm->mmap_sem); in force_user_fault()
|
/Linux-v5.4/Documentation/locking/ |
D | lockstat.rst | 111 …06 &mm->mmap_sem-W: 46 84 0.26 93… 112 …07 &mm->mmap_sem-R: 37 100 1.31 29950… 114 …09 &mm->mmap_sem 1 [<ffffffff811502a7>] khugepaged… 115 …10 &mm->mmap_sem 96 [<ffffffff815351c4>] __do_page_… 116 …11 &mm->mmap_sem 34 [<ffffffff81113d77>] vm_mmap_pg… 117 …12 &mm->mmap_sem 17 [<ffffffff81127e71>] vm_munmap+… 119 …14 &mm->mmap_sem 1 [<ffffffff81046fda>] dup_mmap+0… 120 …15 &mm->mmap_sem 60 [<ffffffff81129e29>] SyS_mprote… 121 …16 &mm->mmap_sem 41 [<ffffffff815351c4>] __do_page_… 122 …17 &mm->mmap_sem 68 [<ffffffff81113d77>] vm_mmap_pg…
|
/Linux-v5.4/mm/ |
D | msync.c | 60 down_read(&mm->mmap_sem); in SYSCALL_DEFINE3() 91 up_read(&mm->mmap_sem); in SYSCALL_DEFINE3() 96 down_read(&mm->mmap_sem); in SYSCALL_DEFINE3() 107 up_read(&mm->mmap_sem); in SYSCALL_DEFINE3()
|
D | init-mm.c | 34 .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
|
/Linux-v5.4/arch/alpha/mm/ |
D | fault.c | 120 down_read(&mm->mmap_sem); in do_page_fault() 183 up_read(&mm->mmap_sem); in do_page_fault() 190 up_read(&mm->mmap_sem); in do_page_fault() 214 up_read(&mm->mmap_sem); in do_page_fault() 221 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/openrisc/mm/ |
D | fault.c | 107 down_read(&mm->mmap_sem); in do_page_fault() 196 up_read(&mm->mmap_sem); in do_page_fault() 205 up_read(&mm->mmap_sem); in do_page_fault() 264 up_read(&mm->mmap_sem); in do_page_fault() 271 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/riscv/mm/ |
D | fault.c | 72 down_read(&mm->mmap_sem); in do_page_fault() 163 up_read(&mm->mmap_sem); in do_page_fault() 171 up_read(&mm->mmap_sem); in do_page_fault() 199 up_read(&mm->mmap_sem); in do_page_fault() 206 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/nds32/mm/ |
D | fault.c | 126 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault() 131 down_read(&mm->mmap_sem); in do_page_fault() 256 up_read(&mm->mmap_sem); in do_page_fault() 264 up_read(&mm->mmap_sem); in do_page_fault() 324 up_read(&mm->mmap_sem); in do_page_fault() 331 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/ia64/mm/ |
D | fault.c | 74 prefetchw(&mm->mmap_sem); in ia64_do_page_fault() 105 down_read(&mm->mmap_sem); in ia64_do_page_fault() 182 up_read(&mm->mmap_sem); in ia64_do_page_fault() 213 up_read(&mm->mmap_sem); in ia64_do_page_fault() 279 up_read(&mm->mmap_sem); in ia64_do_page_fault()
|
/Linux-v5.4/arch/hexagon/mm/ |
D | vm_fault.c | 58 down_read(&mm->mmap_sem); in do_page_fault() 111 up_read(&mm->mmap_sem); in do_page_fault() 115 up_read(&mm->mmap_sem); in do_page_fault() 142 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/m68k/kernel/ |
D | sys_m68k.c | 402 down_read(¤t->mm->mmap_sem); in sys_cacheflush() 453 up_read(¤t->mm->mmap_sem); in sys_cacheflush() 473 down_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32() 496 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32() 500 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32() 540 down_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32() 546 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
|
/Linux-v5.4/arch/sh/kernel/ |
D | sys_sh.c | 72 down_read(¤t->mm->mmap_sem); in sys_cacheflush() 75 up_read(¤t->mm->mmap_sem); in sys_cacheflush() 94 up_read(¤t->mm->mmap_sem); in sys_cacheflush()
|
/Linux-v5.4/arch/xtensa/mm/ |
D | fault.c | 77 down_read(&mm->mmap_sem); in do_page_fault() 143 up_read(&mm->mmap_sem); in do_page_fault() 156 up_read(&mm->mmap_sem); in do_page_fault() 171 up_read(&mm->mmap_sem); in do_page_fault() 179 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/sh/mm/ |
D | fault.c | 264 up_read(&mm->mmap_sem); in __bad_area() 288 up_read(&mm->mmap_sem); in do_sigbus() 307 up_read(¤t->mm->mmap_sem); in mm_fault_error() 319 up_read(¤t->mm->mmap_sem); in mm_fault_error() 323 up_read(¤t->mm->mmap_sem); in mm_fault_error() 427 down_read(&mm->mmap_sem); in do_page_fault() 496 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/csky/mm/ |
D | fault.c | 119 down_read(&mm->mmap_sem); in do_page_fault() 169 up_read(&mm->mmap_sem); in do_page_fault() 177 up_read(&mm->mmap_sem); in do_page_fault() 209 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/arch/powerpc/mm/book3s64/ |
D | subpage_prot.c | 95 down_write(&mm->mmap_sem); in subpage_prot_clear() 130 up_write(&mm->mmap_sem); in subpage_prot_clear() 220 down_write(&mm->mmap_sem); in SYSCALL_DEFINE3() 270 up_write(&mm->mmap_sem); in SYSCALL_DEFINE3() 274 down_write(&mm->mmap_sem); in SYSCALL_DEFINE3() 283 up_write(&mm->mmap_sem); in SYSCALL_DEFINE3()
|
/Linux-v5.4/arch/m68k/mm/ |
D | fault.c | 89 down_read(&mm->mmap_sem); in do_page_fault() 180 up_read(&mm->mmap_sem); in do_page_fault() 188 up_read(&mm->mmap_sem); in do_page_fault() 217 up_read(&mm->mmap_sem); in do_page_fault()
|
/Linux-v5.4/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 109 down_read(¤t->mm->mmap_sem); in qib_get_user_pages() 116 up_read(¤t->mm->mmap_sem); in qib_get_user_pages() 120 up_read(¤t->mm->mmap_sem); in qib_get_user_pages()
|
/Linux-v5.4/arch/mips/mm/ |
D | fault.c | 100 down_read(&mm->mmap_sem); in __do_page_fault() 194 up_read(&mm->mmap_sem); in __do_page_fault() 202 up_read(&mm->mmap_sem); in __do_page_fault() 254 up_read(&mm->mmap_sem); in __do_page_fault() 261 up_read(&mm->mmap_sem); in __do_page_fault()
|
/Linux-v5.4/arch/x86/entry/vdso/ |
D | vma.c | 153 if (down_write_killable(&mm->mmap_sem)) in map_vdso() 196 up_write(&mm->mmap_sem); in map_vdso() 258 down_write(&mm->mmap_sem); in map_vdso_once() 269 up_write(&mm->mmap_sem); in map_vdso_once() 273 up_write(&mm->mmap_sem); in map_vdso_once()
|