raid6-defer-implementation-selection-when-built-in.patch removed from -mm tree
The quilt patch titled
Subject: raid6: defer implementation selection when built-in
has been removed from the -mm tree. Its filename was
raid6-defer-implementation-selection-when-built-in.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: raid6: defer implementation selection when built-in
Date: Wed, 15 Jul 2026 16:47:37 +0200
Don't hold up early boot and defer the selection just like we've been doing for the RAID5 XOR code since commit 524ccdbdfb52 ("crypto: xor - defer load time benchmark to a later time").
This will also allow full use of the timing subsystem for benchmarking.
---
lib/raid/raid6/algos.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-)
lib/raid/raid6/algos.c renamed from lib/raid/raid6/algos.c~raid6-defer-implementation-selection-when-built-in +21 -4
@@ -239,10 +239,6 @@ static int __init raid6_select_algo(voidif (!IS_ENABLED (CONFIG_RAID6_PQ_BENCHMARK ) || raid6_nr_algos ==1 ) {pr_info ("raid6: skipped pq benchmark and selected %s\n" , raid6_algos[raid6_nr_algos -1 ]->name); -static_call_update (raid6_gen_syndrome_impl, - raid6_algos[raid6_nr_algos -1 ]->gen_syndrome); -static_call_update (raid6_xor_syndrome_impl, - raid6_algos[raid6_nr_algos -1 ]->xor_syndrome);return 0 ; }
@@ -329,13 +325,34 @@ static int __init raid6_init(void)static_call_update (raid6_recov_datap_impl, raid6_recov_algo->datap);pr_info ("raid6: using %s recovery algorithm\n" , raid6_recov_algo->name); +/* +* Pick the last registered implementation as the temporary default until +* calibration happens. +*/ +static_call_update (raid6_gen_syndrome_impl, + raid6_algos[raid6_nr_algos -1 ]->gen_syndrome); +static_call_update (raid6_xor_syndrome_impl, + raid6_algos[raid6_nr_algos -1 ]->xor_syndrome); + +#ifdef MODULE return raid6_select_algo (); +#else +return 0 ; +#endif } static void __exit raid6_exit(void) { } +/* +* When built-in we must register the default implementation before md +* initializes, but we don't want calibration to run that early as that +* would delay the boot process. +*/ +#ifndef MODULE +device_initcall (raid6_select_algo); +#endif subsys_initcall (raid6_init);module_exit (raid6_exit);MODULE_LICENSE ("GPL" );
_
Patches currently in -mm which might be from [email protected] are
mm-remove-wb_writeout_inc.patch shmem-provide-a-shmem_write_folio-wrapper.patch mm-swap-introduce-struct-swap_io_ctx.patch mm-swap-also-use-struct-swap_iocb-for-block-i-o.patch mm-swap-remove-count_swpout_vm_event.patch mm-swap-use-swap_ops-to-register-swap-devices-methods.patch mm-swap-remove-swp_fs_ops.patch mm-vmstat-add-nrswpinout-counters.patch