lkml.org 
[lkml]   [2008]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Replace completions with semaphores


    On Tue, 15 Apr 2008, Andi Kleen wrote:
    >
    > For normal locks. But if you have N number of outstanding
    > events you need to wait for the semaphore is the right primitive.

    Right. Except if you were to just use completions instead (which could be
    trivially extended to do that).

    MUCH more trivial than this complex series.

    (You may think that the "Replace completions with semaphores" patch is not
    very complicated, but it *is* - it depends very intimately on the big
    patch-series that basically turns semaphores into what completions are
    now!)

    In other words, what makes me not like this is hat we first turn
    semaphores into the generic code (which is largely what completions were:
    just a special case of the generic semaphores!) and then turns completions
    into these things. That just doesn't make any sense to me!

    Linus


    \
     
     \ /
      Last update: 2008-04-15 19:33    [W:0.020 / U:2.296 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site