Revision 6af10a33c501b0b5878476501143c2cfbbfd63a2 authored by Yufen Yu on 20 August 2020, 13:22:05 UTC, committed by Song Liu on 28 August 2020, 05:41:03 UTC
Commit 3b5408b98e4d ("md/raid5: support config stripe_size by sysfs entry") make stripe_size as a configurable value. It just requires stripe_size as multiple of 4KB. In fact, we should make sure stripe_size as power of two. Otherwise, stripe_shift which is the result of ilog2 can not represent the real stripe_size. Then, stripe_hash() and stripe_hash_locks_hash() may get unexpected value. Fixes: 3b5408b98e4d ("md/raid5: support config stripe_size by sysfs entry") Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Song Liu <songliubraving@fb.com>
1 parent 79e5dc5
File | Mode | Size |
---|---|---|
test | ||
.gitignore | -rw-r--r-- | 106 bytes |
Makefile | -rw-r--r-- | 3.1 KB |
algos.c | -rw-r--r-- | 6.4 KB |
altivec.uc | -rw-r--r-- | 3.3 KB |
avx2.c | -rw-r--r-- | 16.7 KB |
avx512.c | -rw-r--r-- | 17.7 KB |
int.uc | -rw-r--r-- | 3.7 KB |
mktables.c | -rw-r--r-- | 3.9 KB |
mmx.c | -rw-r--r-- | 3.6 KB |
neon.c | -rw-r--r-- | 2.0 KB |
neon.uc | -rw-r--r-- | 3.8 KB |
recov.c | -rw-r--r-- | 3.3 KB |
recov_avx2.c | -rw-r--r-- | 8.8 KB |
recov_avx512.c | -rw-r--r-- | 9.4 KB |
recov_neon.c | -rw-r--r-- | 2.6 KB |
recov_neon_inner.c | -rw-r--r-- | 2.3 KB |
recov_s390xc.c | -rw-r--r-- | 2.7 KB |
recov_ssse3.c | -rw-r--r-- | 9.0 KB |
s390vx.uc | -rw-r--r-- | 3.8 KB |
sse1.c | -rw-r--r-- | 4.6 KB |
sse2.c | -rw-r--r-- | 15.8 KB |
unroll.awk | -rw-r--r-- | 423 bytes |
vpermxor.uc | -rw-r--r-- | 2.7 KB |
x86.h | -rw-r--r-- | 2.1 KB |
Computing file changes ...