tracing: Fix preempt count leak
commit397435355c1704173b300025e657c5a32ebab210
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 9 Dec 2010 07:47:56 +0000 (9 15:47 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:10 +0000 (17 15:14 -0800)
treeda99f10cfcd212e80cd7e57a62314329f191cbef
parentc3ce76ad2701dd8db5e8f8db871d6c2d7aea150c
tracing: Fix preempt count leak

commit 1dbd1951f39e13da579ffe879cce19586d0462de upstream.

While running my ftrace stress test, this showed up:

BUG: sleeping function called from invalid context at mm/mmap.c:233
...
note: cat[3293] exited with preempt_count 1

The bug was introduced by commit 91e86e560d0b3ce4c5fc64fd2bbb99f856a30a4e
("tracing: Fix recursive user stack trace")

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4D0089AC.1020802@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/trace.c