]> git.baikalelectronics.ru Git - kernel.git/commit
lib/raid6: add option to skip algo benchmarking
authorDaniel Verkamp <dverkamp@chromium.org>
Mon, 12 Nov 2018 23:26:52 +0000 (15:26 -0800)
committerShaohua Li <shli@fb.com>
Thu, 20 Dec 2018 16:53:23 +0000 (08:53 -0800)
commit93aa89597fdf9e79f1d5ea88364778413be0b034
tree83da6e27e6ab8e949115a5a690af009c69912da3
parentb2ba0f9ca3c38d6ad89eb035481d92ee92bd469c
lib/raid6: add option to skip algo benchmarking

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: Daniel Verkamp <dverkamp@chromium.org>
Signed-off-by: Shaohua Li <shli@fb.com>
include/linux/raid/pq.h
lib/Kconfig
lib/raid6/algos.c