]> git.karo-electronics.de Git - mv-sheeva.git/commit
tracing: fix event_subsystem ref counting
authorIlya Dryomov <idryomov@gmail.com>
Mon, 31 Oct 2011 09:07:42 +0000 (11:07 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 31 Oct 2011 17:59:23 +0000 (13:59 -0400)
commitd631097577f6fe027f4903f62eabced6445d19bf
tree42aacb1258942bcf51e4a2893f3303965997902b
parentc752d04066a36ae30b29795f3fa3f536292c1f8c
tracing: fix event_subsystem ref counting

Fix a bug introduced by e9dbfae5, which prevents event_subsystem from
ever being released.

Ref_count was added to keep track of subsystem users, not for counting
events.  Subsystem is created with ref_count = 1, so there is no need to
increment it for every event, we have nr_events for that.  Fix this by
touching ref_count only when we actually have a new user -
subsystem_open().

Cc: stable@vger.kernel.org
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Link: http://lkml.kernel.org/r/1320052062-7846-1-git-send-email-idryomov@gmail.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c