qsbr: save two full smp_mb() when the writer is also a reader.
authorPierre Habouzit <madcoder@debian.org>
Thu, 17 Sep 2009 12:30:19 +0000 (08:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 17 Sep 2009 12:30:19 +0000 (08:30 -0400)
commit8f50d1ce191ad5f85384c0afbf1ac5b7516ea79f
treea4e8b50f98096a9dbc81a875466732d5244a7491
parentb6953cd76fe3068c601059879924a6afca76b10f
qsbr: save two full smp_mb() when the writer is also a reader.

Now that you've put the barriers before taking lock, and after releasing
it, one can expand the _rcu_thread_{on,off}line call, and optimize two
barrier calls away. (this is patch 1/2).

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c
This page took 0.02502 seconds and 4 git commands to generate.