Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: fix event_subsystem ref counting
Fix a bug introduced by e9dbfae, 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: [email protected] Signed-off-by: Ilya Dryomov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt <[email protected]>
- Loading branch information