[lkml]   [2010]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 6/6] procfs: Kill the bkl in ioctl
    On Wednesday 31 March 2010 22:21:23 Arnd Bergmann wrote:
    > Another crazy idea I had was to simply turn the BKL into a regular mutex
    > as soon as we can show that all remaining users are of the non-recursive
    > kind and don't rely on the autorelease-on-sleep. Doing that would be
    > much easier without the pushdown into .unlocked_ioctl than it would be
    > with it.

    I just looked at all the users of lock_kernel remaining with my patch
    series. For 90% of them, it is completely obvious that they don't rely
    on nested locking, and they very much look like they don't need the
    autorelease either, because the BKL was simply pushed down into the
    open, ioctl and llseek functions.

    There are a few file systems (udf, ncpfs, autofs, coda, ...) and some
    network protocols (appletalk, ipx, irnet and x25) for which it is not
    obviously, though still quite likely, the case.

    So we could actually remove the BKL recursion code soon, or even turn
    all of it into a regular mutex, at least as an experimental option.

    The recursive users that I've removed in my series are the block, tty,
    input and sound subsystems, as well as the init code.


     \ /
      Last update: 2010-03-31 23:07    [W:0.048 / U:5.704 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site