diff options
author | 2009-05-26 09:41:17 +1000 | |
---|---|---|
committer | 2009-05-26 09:41:17 +1000 | |
commit | be512691036cc989c11d0f418187efbbf14468e6 (patch) | |
tree | 557b303a058fc3effdfc15a5cc08867fb0ee6889 /mm | |
parent | md: improve errno return when setting array_size (diff) | |
download | wireguard-linux-be512691036cc989c11d0f418187efbbf14468e6.tar.xz wireguard-linux-be512691036cc989c11d0f418187efbbf14468e6.zip |
md: bitmap: improve bitmap maintenance code.
The code for checking which bits in the bitmap can be cleared
has 2 problems:
1/ it repeatedly takes and drops a spinlock, where it would make
more sense to just hold on to it most of the time.
2/ it doesn't make use of some opportunities to skip large sections
of the bitmap
This patch fixes those. It will only affect CPU consumption, not
correctness.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions