lkml.org 
[lkml]   [2010]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 04/14] mm,migration: Allow the migration of PageSwapCache pages
    On Thu, 22 Apr 2010, Minchan Kim wrote:

    > For further optimization, we can hold vma->adjust_lock if vma_address
    > returns -EFAULT. But I hope we redesigns it without new locking.
    > But I don't have good idea, now. :(

    You could make it atomic through the use of RCU.

    Create a new vma entry with the changed parameters and then atomically
    switch to the new vma.

    Problem is that you have some list_heads in there.



    \
     
     \ /
      Last update: 2010-04-22 17:17    [W:4.069 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site