sbitmap: use smp_mb__after_atomic() in sbq_wake_up()
authorOmar Sandoval <osandov@fb.com>
Wed, 18 Jan 2017 19:55:21 +0000 (11:55 -0800)
committerJens Axboe <axboe@fb.com>
Wed, 18 Jan 2017 20:41:49 +0000 (13:41 -0700)
commitf66227de5924ed0fde1823f5cbc4d8b8f45faaa2
tree0de01e70f6d96b76b1b38e66a0b4bef2231b9634
parent4d199c6f1c847151ea393d5b9946a17cc57cdf6d
sbitmap: use smp_mb__after_atomic() in sbq_wake_up()

We always do an atomic clear_bit() right before we call sbq_wake_up(),
so we can use smp_mb__after_atomic(). While we're here, comment the
memory barriers in here a little more.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
lib/sbitmap.c