• Ingo Molnar's avatar
    [PATCH] lockdep: increase max allowed recursion depth · ca268c69
    Ingo Molnar authored
    In general, lockdep warnings are intended to be non-fatal, so I have put in
    various practical limits on internal data structure failure modes.  We haven't
    had a /single/ lockdep-internal crash ever since lockdep went upstream [the
    unwinder crashes are outside of lockdep], and that's largely due to the good
    internal checks it does.
    
    Recursion within the dependency graph is currently limited to 20, that's
    probably not enough on some many-CPU boxes - this patch doubles it to 40.  I
    have written the lockdep functions to have as small stackframes as possible,
    so 40 should be OK too.  (The practical recursion limit should be somewhere
    between 100 and 200 entries.  If we hit that then I'll change the algorithm to
    be iteration-based.  Graph walking logic is so easy to program via recursion,
    so i'd like to keep recursion as long as possible.)
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ca268c69
lockdep.c 68 KB