[lkml]   [1999]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: locking question: do_mmap(), do_munmap()

    On Mon, 11 Oct 1999 12:07:08 -0700 (PDT),
    (Kanoj Sarcar) said:

    >> What about something like a rw-semaphore which protects the vma list:
    >> vma-list modifiers [ie merge_segments(), insert_vm_struct() and
    >> do_munmap()] grab it exclusive, swapper grabs it "shared, starve
    >> exclusive".
    >> All other vma-list readers are protected by mm->mmap_sem.

    > I have tried to follow most of the logic and solutions proposed
    > on this thread.

    It will deadlock.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:54    [W:0.023 / U:8.644 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site