]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite340ca8129d43cde7b3dbe4a5d3e668c46358b18
tree0de01e70f6d96b76b1b38e66a0b4bef2231b9634
parent7774b6a97c397cce7c8a4e1d63fe5b9d38226b74
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