[lkml]   [2007]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[PATCHSET 2/4] sysfs: allow suicide
    Hello, all.

    This is the second patchset of four sysfs update patchset series[1]
    and to be applied on top of the first patchset[1].

    Currently, sysfs files which want to kill themselves should ask
    someone else (workqueue) to kill it, which is so inhumane. This
    patchset updates sysfs file implementation such that sysfs files can
    commit suicide peacefully.

    Global sledgehammer module unload inhibition/delay mechanism is
    implemented and used to prevent premature unload while suicide is in
    progress. Suicide attempt is detected by scanning sysfs_buffers for
    matching accessor. If suicide is detected, active references the
    accessor were holding are dropped early such that the suiciding node
    can be deactivated without deadlock.

    As active references go away early, the module basing the code the
    accessor is running can go away before it finishes. Global module
    unload inhibition is used here to prevent that until accessor callback
    is complete.

    This patchset contains the following four patches.


    0001 needs Rusty Russell's ack.




    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-09-20 09:29    [W:0.023 / U:0.296 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site