diff options
Diffstat (limited to 'drivers/md/raid6algos.c')
-rw-r--r-- | drivers/md/raid6algos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid6algos.c b/drivers/md/raid6algos.c index 77a6e4bf503d..21987e3dbe6c 100644 --- a/drivers/md/raid6algos.c +++ b/drivers/md/raid6algos.c | |||
@@ -121,7 +121,8 @@ int __init raid6_select_algo(void) | |||
121 | j0 = jiffies; | 121 | j0 = jiffies; |
122 | while ( (j1 = jiffies) == j0 ) | 122 | while ( (j1 = jiffies) == j0 ) |
123 | cpu_relax(); | 123 | cpu_relax(); |
124 | while ( (jiffies-j1) < (1 << RAID6_TIME_JIFFIES_LG2) ) { | 124 | while (time_before(jiffies, |
125 | j1 + (1<<RAID6_TIME_JIFFIES_LG2))) { | ||
125 | (*algo)->gen_syndrome(disks, PAGE_SIZE, dptrs); | 126 | (*algo)->gen_syndrome(disks, PAGE_SIZE, dptrs); |
126 | perf++; | 127 | perf++; |
127 | } | 128 | } |