Skip to content
  • Daniel Verkamp's avatar
    lib/raid6: add option to skip algo benchmarking · be85f93a
    Daniel Verkamp authored
    
    
    This is helpful for systems where fast startup time is important.
    It is especially nice to avoid benchmarking RAID functions that are
    never used (for example, BTRFS selects RAID6_PQ even if the parity RAID
    mode is not in use).
    
    This saves 250+ milliseconds of boot time on modern x86 and ARM systems
    with a dozen or more available implementations.
    
    The new option is defaulted to 'y' to match the previous behavior of
    always benchmarking on init.
    
    Signed-off-by: default avatarDaniel Verkamp <dverkamp@chromium.org>
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    be85f93a