HomeFreeBSD

Linux 3.16 compat: smp_mb__after_clear_bit()

Description

Linux 3.16 compat: smp_mb__after_clear_bit()

The smp_mb{before,after}_clear_bit functions have been renamed
smp_mb
{before,after}_atomic. Rather than adding a compatibility
function to handle this the code has been updated to use smp_wmb().

This has the advantage of being a stable functionally equivalent
interface. On many architectures smp_mb__after_clear_bit() expands
to smp_wmb(). Others might be able to do something slightly more
efficient but this will be safe and correct on all of them.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #386

Details

Provenance
Turbo Fredriksson <turbo@bayour.com>Authored on Sep 14 2014, 3:47 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 22 2014, 11:24 PM
Parents
rGf9bde4f74be5: Avoid PAGESIZE redefinition
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe3020723dc43: Linux 3.16 compat: smp_mb__after_clear_bit() (authored by Turbo Fredriksson <turbo@bayour.com>).Sep 22 2014, 11:24 PM