Re: [PATCH] sched: don't take a mutex from interrupt context

From: Ingo Molnar
Date: Tue Jan 22 2008 - 12:07:28 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> > WARNING: at kernel/mutex.c:134 mutex_lock_nested+0x277/0x290()

> Subject: sched: don't take a mutex from interrupt context
>
> print_cfs_stats is callable from interrupt context (sysrq), hence it
> should not take mutexes. Change it to use RCU since the task group
> data is RCU freed anyway.

thanks Peter, applied this to sched-devel.git.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/