trace: module: Maintain a valid user count
The replacement of the 'count' variable by two variables 'incs' and
'decs' to resolve some race conditions during module unloading was done
in parallel with some cleanup in the trace subsystem, and was integrated
as a merge.
Unfortunately, the formula for this replacement was wrong in the tracing
code, and the refcount in the traces was not usable as a result.
Use 'count = incs - decs' to compute the user count.
Acked-by: Ingo Molnar <email@example.com>
Cc: Rusty Russell <firstname.lastname@example.org>
Cc: Frederic Weisbecker <email@example.com>
Cc: firstname.lastname@example.org # 2.6.35
Fixes: c1ab9cab7509 "merge conflict resolution"
Signed-off-by: Romain Izard <email@example.com>
Signed-off-by: Steven Rostedt <firstname.lastname@example.org>
1 file changed