From 5aa3bb406b0c4c9b081ce586e394ba13a63c5da4 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 14 May 2022 20:24:12 -0700 Subject: Updated to 5.17.7 --- raid6-default-algo.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'raid6-default-algo.patch') diff --git a/raid6-default-algo.patch b/raid6-default-algo.patch index 98bfd54..77e13f4 100644 --- a/raid6-default-algo.patch +++ b/raid6-default-algo.patch @@ -41,7 +41,7 @@ index d3b16f43c39f..480cbfbe293f 100644 struct raid6_calls raid6_call; EXPORT_SYMBOL_GPL(raid6_call); -@@ -157,6 +163,26 @@ static inline const struct raid6_calls *raid6_choose_gen( +@@ -157,6 +163,26 @@ int start = (disks>>1)-1, stop = disks-3; /* work on the second half of the disks */ const struct raid6_calls *const *algo; const struct raid6_calls *best; @@ -65,6 +65,6 @@ index d3b16f43c39f..480cbfbe293f 100644 + } +#endif + - for (bestgenperf = 0, bestxorperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { - if (!best || (*algo)->prefer >= best->prefer) { - /* 2 ^ (RAID6_TIME_JIFFIES_LG2 - 0.5) */ + for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { + if (!best || (*algo)->priority >= best->priority) { + if ((*algo)->valid && !(*algo)->valid()) -- cgit v1.2.1