markers: re-enable fast batch registration
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 1 Oct 2008 16:03:25 +0000 (12:03 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:38:38 +0000 (10:38 +0200)
commited86a59071a4ccd0e9bcefc61e013759a21eda78
tree013abe0cb9e3cd4d7e6c2a9655f86517423a2623
parent5b9261d93e5fa3db4995d5b77b5ed365166e001c
markers: re-enable fast batch registration

Lai Jiangshan discovered a reentrancy issue with markers and fixed it by
adding synchronize_sched() calls at each registration/unregistraiton.

It works, but it removes the ability to do batch
registration/unregistration and can cause registration of ~100 markers
to take about 30 seconds on a loaded machine (synchronize_sched() is
much slower on such workloads).

This patch implements a version of the fix which won't slow down marker batch
registration/unregistration. It also go back to the original non-synchronized
reg/unreg.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/marker.c