summaryrefslogtreecommitdiff
path: root/raid6-default-algo.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-05-14 20:24:12 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-05-14 20:24:12 -0700
commit5aa3bb406b0c4c9b081ce586e394ba13a63c5da4 (patch)
tree1cf9243023a2fba4a632bc6ea4a394b01340efb4 /raid6-default-algo.patch
parentUpdated to 5.16.20 (diff)
downloadlinux-5aa3bb406b0c4c9b081ce586e394ba13a63c5da4.tar.xz
Updated to 5.17.7
Diffstat (limited to 'raid6-default-algo.patch')
-rw-r--r--raid6-default-algo.patch8
1 files changed, 4 insertions, 4 deletions
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())