• NeilBrown's avatar
    md: bitmap: improve bitmap maintenance code. · be512691
    NeilBrown authored
    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: default avatarNeilBrown <neilb@suse.de>
    be512691
bitmap.c 44.1 KB