lkml.org 
[lkml]   [2008]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH V2 1/4] vmalloc: introduce vfree_atomic()
    Date
    On Tuesday 18 November 2008 19:51, Lai Jiangshan wrote:
    > fdtable and sysipc use vfree() in RCU callback. this patch
    > introduce vfree_atomic() for them.

    AFAIKS, vfree is usable from atomic context? What am I missing?
    Actually, one could argue that we don't want to perform such
    costly operations in the atomic context, however with lazy
    unmapping, vfree is very cheap now (amortized, at least).

    But it should be much cheaper on average not to schedule this in
    another context.

    If there was any concern about the TLB flush from atomic context,
    we should just defer the lazy flushing, rather than every single
    vunmap.


    \
     
     \ /
      Last update: 2008-11-18 10:23    [W:0.041 / U:58.952 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site