md/bitmap: make _page_attr bitops atomic.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:22 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:22 +0000 (13:55 +1000)
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>

No differences found