tracing: Fix preempt count leak
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 9 Dec 2010 07:47:56 +0000 (15:47 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 8 Jan 2011 04:20:02 +0000 (23:20 -0500)
commit1dbd1951f39e13da579ffe879cce19586d0462de
treefaf1ea3208d0e612968a2892917c036a32ff9bda
parentbd1c8b22b7b81c6f6c4f5c19cb2387da3d02fb0f
tracing: Fix preempt count leak

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")

Cc: <stable@kernel.org>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4D0089AC.1020802@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c