• Minchan Kim's avatar
    binder: reduce mmap_sem write-side lock · 3013bf62
    Minchan Kim authored
    binder has used write-side mmap_sem semaphore to release memory
    mapped at address space of the process. However, right lock to
    release pages is down_read, not down_write because page table lock
    already protects the race for parallel freeing.
    
    Please do not use mmap_sem write-side lock which is well known
    contented lock.
    
    Cc: Todd Kjos <tkjos@google.com>
    Cc: Martijn Coenen <maco@android.com>
    Cc: Arve Hjønnevåg <arve@android.com>
    Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    3013bf62
binder_alloc.c 31.9 KB