]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: STRIPE_ACTIVE has lock semantics, add barriers
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Nov 2011 05:22:06 +0000 (16:22 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:44:50 +0000 (09:44 -0800)
commit9851882600e7ad611093c661e785572bc8161493
tree0ee2083caf96d6a4a84e6f5b66f4ccb04a384b14
parent8bf61ab910e9de3cb55db58794ec07c737089b10
md/raid5: STRIPE_ACTIVE has lock semantics, add barriers

commit 257a4b42af7586fab4eaec7f04e6896b86551843 upstream.

All updates that occur under STRIPE_ACTIVE should be globally visible
when STRIPE_ACTIVE clears.  test_and_set_bit() implies a barrier, but
clear_bit() does not.

This is suitable for 3.1-stable.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid5.c