lkml.org 
[lkml]   [2012]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2] sched: taint kernel with TAINT_WARN after sleep-in-atomic bug
    From
    Date
    On Thu, 2012-05-10 at 16:20 +0400, Konstantin Khlebnikov wrote:
    > Usually sleep-in-atomic bugs are followed by dozens other warnings.
    > This patch should help to figure out original source of problem.
    >
    > Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>

    Thanks!

    > ---
    > kernel/sched/core.c | 1 +
    > 1 file changed, 1 insertion(+)
    >
    > diff --git a/kernel/sched/core.c b/kernel/sched/core.c
    > index 0533a68..b6458e4 100644
    > --- a/kernel/sched/core.c
    > +++ b/kernel/sched/core.c
    > @@ -3113,6 +3113,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
    > if (irqs_disabled())
    > print_irqtrace_events(prev);
    > dump_stack();
    > + add_taint(TAINT_WARN);
    > }
    >
    > /*
    >



    \
     
     \ /
      Last update: 2012-05-18 11:41    [W:0.026 / U:94.304 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site