From 69cb6bfa637d238a481d2727a6363ecb4c51d352 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Fri, 3 Jul 2009 08:30:32 -0500 Subject: [PATCH] trace: disable workqueue tracer on RT commit 9026677c72e1f3c1682ccd461d80f9467f13b8e4 in tip. Turn it off for now: BUG: sleeping function called from invalid context at kernel/rtmutex.c:683 in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: init 1 lock held by init/1: #0: (&cwq->lock){--..}, at: [] __queue_work+0x21/0x50 Pid: 1, comm: init Not tainted 2.6.29-rc4-rt0-tip #186 Call Trace: [] ? __debug_show_held_locks+0x13/0x30 [] __might_sleep+0x141/0x180 [] __lock_text_start+0x56/0xd0 [] ? ftrace_call+0x5/0x2b [] probe_workqueue_insertion+0x18/0xc0 [] insert_work+0x87/0x190 [] __queue_work+0x33/0x50 [] queue_work_on+0xaf/0xc0 [] queue_work+0x16/0x20 [] call_usermodehelper_exec+0xff/0x130 [] ? prepare_usermodehelper_creds+0x15c/0x180 [] ? prepare_usermodehelper_creds+0x15c/0x180 [] kobject_uevent_env+0x8f1/0x900 [] ? ftrace_call+0x5/0x2b [] kobject_uevent+0xb/0x10 [] device_add+0x793/0xa70 [] device_register+0x1e/0x30 [] device_create_vargs+0x13e/0x180 [] device_create+0x31/0x40 [] ? ftrace_call+0x5/0x2b [] vcs_make_sysfs+0x3b/0x70 [] con_open+0x128/0x160 [] tty_open+0x2fd/0x7a0 [] chrdev_open+0x185/0x230 [] ? chrdev_open+0x0/0x230 [] __dentry_open+0x1ff/0x4c0 [] nameidata_to_filp+0x4c/0x80 [] do_filp_open+0x39e/0xd20 [] ? __spin_unlock_irqrestore+0x74/0xb0 [] ? rt_spin_lock_slowunlock+0x5a/0xa0 [] ? alloc_fd+0xa4/0x1e0 [] do_sys_open+0xd3/0x160 [] sys_open+0x20/0x30 [] system_call_fastpath+0x16/0x1b Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Signed-off-by: Paul Gortmaker --- kernel/trace/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 13e13d4..43fe88c 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -403,7 +403,7 @@ config KMEMTRACE If unsure, say N. config WORKQUEUE_TRACER - bool "Trace workqueues" + bool "Trace workqueues" if !PREEMPT_RT select GENERIC_TRACER help The workqueue tracer provides some statistical information -- 1.7.0.4