[lkml]   [2011]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] plist: add mutex to the blessed lock type for plists
    Dima Zavin <> writes:

    > Currently, plist debugging "enforces" that the plist is locked
    > with either a raw_spinlock or a spinlock. The plist data structure
    > is useful in other places, where spinlocks are unnecessary.
    > Extend the plist initializers and debug checks to allow the plist
    > to be protected by a mutex

    Seems really ugly and clearly not a godo path.

    It's a bit like adding a 11th argument to a function which already has

    Perhaps better move out the locking completely to wrappers and remove
    the knowledge from the core plist code.


    -- -- Speaking for myself only

     \ /
      Last update: 2011-06-29 22:17    [W:0.018 / U:9.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site