• Arjan van de Ven's avatar
    [PATCH] Fix fs/locks.c init order · 1a6dbfc0
    Arjan van de Ven authored
    The patch below fixes an interesting oddity we're seeing with fedora core
    development (where we recently started using udev heavily); basically right
    now filelock_init() is a module_init(), eg runs late.  However that breaks
    down because there are earlier /sbin/hotplug callouts, which with udev, do
    locking operations.  When that happens the kernel oopses because the slabs
    for file locks aren't initialized yet.
    
    Solution: initialize this way early.  It's only a kmem_cache_create after
    all, so can happen early.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    1a6dbfc0
locks.c 50.9 KB