liburcu: Use membarrier private expedited when available
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Dec 2017 18:42:23 +0000 (13:42 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Dec 2017 16:28:24 +0000 (11:28 -0500)
commitc0bb9f693f926595a7cb8b4ce712cef08d9f5d49
tree1161b3a8d1ee85b191f3fad4d10175f40c47bbe1
parent6ef909036441002b1f219a45d2ec453c60328163
liburcu: Use membarrier private expedited when available

For the liburcu flavor, use the membarrier private expedited
command when available. It is faster than the shared expedited
command, but has only been introduced in 4.14 Linux kernels.

When configured with --disable-sys-membarrier-fallback, liburcu
will abort if running on a kernel that provide neither the shared
nor the private expedited membarrier commands. This is the case
if running on a CONFIG_MEMBARRIER=n kernel, or a kernel version
below 4.3.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/urcu.c
This page took 0.055922 seconds and 4 git commands to generate.