]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/lru_cache.c
drbd: use clear_bit_unlock() where appropriate
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 21 Feb 2011 12:20:55 +0000 (13:20 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:42 +0000 (16:47 +0200)
commit4738fa16907a933d72bbcae1b8922dc9330fde92
treed0a48980a5269758ba01545b4200c548b30b0909
parent61610420f764acb835af4a450251dbab2ab6d621
drbd: use clear_bit_unlock() where appropriate

Some open-coded clear_bit(); smp_mb__after_clear_bit();
should in fact have been smp_mb__before_clear_bit(); clear_bit();

Instead, use clear_bit_unlock() to annotate the intention,
and have it do the right thing.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_bitmap.c
drivers/block/drbd/drbd_main.c
include/linux/lru_cache.h
lib/lru_cache.c