]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 3.16 compat: smp_mb__after_clear_bit()
authorTurbo Fredriksson <turbo@bayour.com>
Sun, 14 Sep 2014 15:47:22 +0000 (15:47 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 Sep 2014 23:24:55 +0000 (16:24 -0700)
commite3020723dc43af2bc22af0d68571a61daf9b44d0
tree816a6aebbdff5cbcfb0590780a25c13b7dd5eefe
parentf9bde4f74be5e5030571415d9c869400dff3eda6
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
module/spl/spl-kmem.c