[lkml]   [2007]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC/PATCH] debug workqueue deadlocks with lockdep
    On Wed, 2007-07-04 at 14:21 +0200, Ingo Molnar wrote:

    > well, in this case the lock/unlock should nest perfectly (i.e. it should
    > always be balanced perfectly), so indeed calling with nested==1 leads to
    > stricter checking.
    > non-nested unlocks occur when people do stuff like:
    > spin_lock(&lock1);
    > spin_lock(&lock2);
    > spin_unlock(&lock1);
    > spin_unlock(&lock2);
    > the first unlock is not 'nested perfectly'. Now for the workqueue
    > dep_map this shouldnt be a legal combination, right?

    I don't think so, will change to use nested==1.

    [unhandled content-type:application/pgp-signature]
     \ /
      Last update: 2007-07-04 16:01    [W:0.037 / U:32.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site