[lkml]   [2007]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2/2] workqueue: debug work related deadlocks with lockdep
    On 07/06, Johannes Berg wrote:
    > On Thu, 2007-07-05 at 19:36 +0400, Oleg Nesterov wrote:
    > > So, __WORK_INITIALIZER() uses work_struct itself as a "struct lock_class_key" ?
    > > How so?
    > Well, this is for work_structs that are static (not dynamically
    > allocated.) struct lock_class_key is just a single byte because its
    > whole purpose is to be a unique pointer, there's nothing actually in it.
    > Hence, taking the address of the work struct (when it's statically
    > allocated) is a unique pointer just as well.

    Yes, got it, but forgot to reply to myself. But thanks for your confirmation
    of my understanding.

    I believe both patches are nice.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-07-06 14:55    [W:0.018 / U:50.012 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site