lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] Replace completions with semaphores
    Date
    Am Mittwoch, 16. April 2008 18:16:52 schrieb Matthew Wilcox:
    > The basic idea is that you get back a cookie from the kcounter_claim()
    > which you have to hand to the kcounter_release() function so it
    > knows which one you released.  It's similar to mutex debugging except

    So in addition to the kcounter we need to save a token in a data structure?
    In fact, there must be a data structure that can house that token. So you
    can no longer live with a pointer just to a device descriptor, but every
    individual use of a resource must have an associated data structure?

    Regards
    Oliver

    --
    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: 2008-04-16 18:29    [W:0.020 / U:0.148 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site