[lkml]   [2012]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Sysfs attributes racing with unregistration

    On Wed, Jan 04, 2012 at 01:13:41PM -0500, Alan Stern wrote:
    > Now, looking through the code, I wonder why sysfs_{get,put}_active()
    > and sysfs_deactivate() don't use a real rwsem. Why go to all the
    > effort of imitating one? Is it just to save space?

    Hmmm... maybe there was something which prevented that or maybe I was
    just being stupid. I don't really remember. Space is a fairly
    important consideration too. Depending on configuration, there can be
    a LOT of sysfs_dirents and memory consumption from sysfs has been a
    real problem.



     \ /
      Last update: 2012-01-04 19:23    [W:0.018 / U:3.296 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site