projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriyan...
[cascardo/linux.git]
/
drivers
/
md
/
raid6algos.c
diff --git
a/drivers/md/raid6algos.c
b/drivers/md/raid6algos.c
index
77a6e4b
..
21987e3
100644
(file)
--- a/
drivers/md/raid6algos.c
+++ b/
drivers/md/raid6algos.c
@@
-121,7
+121,8
@@
int __init raid6_select_algo(void)
j0 = jiffies;
while ( (j1 = jiffies) == j0 )
cpu_relax();
- while ( (jiffies-j1) < (1 << RAID6_TIME_JIFFIES_LG2) ) {
+ while (time_before(jiffies,
+ j1 + (1<<RAID6_TIME_JIFFIES_LG2))) {
(*algo)->gen_syndrome(disks, PAGE_SIZE, dptrs);
perf++;
}