[lkml]   [2008]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class
    On Fri, Jan 18, 2008 at 09:42:25AM +0800, Dave Young wrote:
    > After digging the class usage code again, I found that the only
    > possible double lock place is the class_interface_register/unregister
    > in which the class_device api could be called.

    OK, but currently after using mostly:

    and once:
    mutex_lock_nested(&parent_class, SINGLE_DEPTH_NESTING)

    lockdep mostly thinks these parent classes are 2 different objects,
    with only 2 possible levels of nesting, so this parent_class has
    to have wrong name (2 parents can't be locked from the same thread,
    so maybe it's class_grandparent sometimes?).

    Jarek P.

     \ /
      Last update: 2008-01-18 08:57    [W:0.026 / U:12.688 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site