lkml.org 
[lkml]   [2007]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH RFD] alternative kobject release wait mechanism
    Tejun Heo wrote:
    > Hello, all.
    >
    > Agreed with the problem but I'm not very enthusiastic for adding
    > kobj->owner. How about the following? exit() routines will have to
    > do device_unregister_wait() instead of device_unregister(). On return
    > from it, it's guaranteed that all references to it are dropped and
    > ->release is finished. The caller is responsible for avoiding
    > deadlock, of course.

    Oh, one more thing, with proper code audit, we can just make
    device_unregister() do the waiting instead of adding separate
    device_unregister_wait(). I think that will be a good step toward
    immediate-detach driver model.

    --
    tejun
    -
    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: 2007-04-17 20:51    [W:3.126 / U:0.296 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site