md/bitmap: use set_bit, test_bit, etc for operation on bitmap->flags.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:15 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:15 +0000 (13:55 +1000)
We currently use '&' and '|' which isn't the norm in the kernel
and doesn't allow easy atomicity.
So change to bit numbers and {set,clear,test}_bit.
This allows us to remove a spinlock/unlock (which was dubious anyway)
and some other simplifications.

Signed-off-by: NeilBrown <neilb@suse.de>

No differences found