Re: cleanup the RAID6 P/Q library v2

"Ard Biesheuvel" <[email protected]>
Newsgroups gmane.linux.ports.riscv,gmane.linux.kernel,gmane.linux.ports.arm.kernel,gmane.linux.ports.ppc64.devel,gmane.linux.kernel.cryptoapi,gmane.comp.file-systems.btrfs,gmane.linux.kernel.cross-arch,gmane.linux.raid
Message-ID <[email protected]>
On Tue, 12 May 2026, at 07:20, Christoph Hellwig wrote:
> Hi all,
>
> this series cleans up the RAID6 P/Q library to match the recent updates
> to the RAID 5 XOR library and other CRC/crypto libraries.  This includes
> providing properly documented external interfaces, hiding the internals,
> using static_call instead of indirect calls and turning the user space
> test suite into an in-kernel kunit test which is also extended to
> improve coverage.
>
> Note that this changes registration so that non-priority algorithms are
> not registered, which greatly helps with the benchmark time at boot time.
> I'd like to encourage all architecture maintainers to see if they can
> further optimized this by registering as few as possible algorithms when
> there is a clear benefit in optimized or more unrolled implementations.
>
> This series sits on top of the "cleanup the RAID5 XOR library v3" series.
>
> A git tree is also available here:
>
>     git://git.infradead.org/users/hch/misc.git lib-raid6
>
> Gitweb:
>
>     
> https://git.infradead.org/?p=users/hch/misc.git;a=shortlog;h=refs/heads/lib-raid6
>
> Changes since v1:
>  - fix arm64 objdir != srcdir builds
>  - call the kunit module raid6_kunit.ko from the beginning
>  - update MAINTAINERS
>  - don't require preemptible context and apply the same restrictions as
>    the merged version of the XOR API
>  - fix the arm64 default in Kconfig
>  - pick the last registered (and presumably most optimized) algorithm when
>    benchmarking is disabled
>  - port over the randomization fixes from the XOR series
>  - misc other kunit cleanups
>  - require at least 4 devices for RAID6 to skip broken special cases
>

Tested-by: Ard Biesheuvel <[email protected]> # kunit only on arm64
Acked-by: Ard Biesheuvel <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.