]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: make _page_attr bitops atomic.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:57 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:57 +0000 (10:57 +1000)
commit53ede65bfc04d46b09c86c661fa03aff42b906d2
treeef11761ca6a0b8fdef300e24a16bd5fcaefebabf
parentfef31a061b01b681e850f30e8a9a5e0005538c1c
md/bitmap: make _page_attr bitops atomic.

Using e.g. set_bit instead of __set_bit and using test_and_clear_bit
allow us to remove some locking and contract other locked ranges.

It is rare that we set or clear a lot of these bits, so gain should
outweigh any cost.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c