lkml.org 
[lkml]   [2007]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/2] mm: change mmap_sem over to the scalable rw_mutex
    On Fri, 11 May 2007 15:15:43 +0200 Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

    > - down_write(&current->mm->mmap_sem);
    > + rw_mutex_write_lock(&current->mm->mmap_lock);

    y'know, this is such an important lock and people have had such problems
    with it and so many different schemes and ideas have popped up that I'm
    kinda thinking that we should wrap it:

    write_lock_mm(struct mm_struct *mm);
    write_unlock_mm(struct mm_struct *mm);
    read_lock_mm(struct mm_struct *mm);
    read_unlock_mm(struct mm_struct *mm);

    so that further experimentations become easier?
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-05-11 18:23    [W:3.653 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site