Yufen Yu 6af10a33c5 md/raid5: make sure stripe_size as power of two
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>
2020-08-27 22:41:03 -07:00
..
2020-08-05 10:51:40 -07:00
2019-11-12 19:12:07 -07:00
2020-08-05 11:12:34 -07:00
2020-07-08 17:20:46 -06:00
2020-08-07 10:33:50 -07:00
2020-08-03 11:57:03 -07:00
2020-07-08 17:20:46 -06:00
2020-07-31 08:17:54 +02:00
2020-08-15 20:36:42 -07:00
2020-07-08 17:20:46 -06:00
2020-07-08 17:20:46 -06:00
2019-03-12 10:15:18 -07:00
2020-08-10 19:07:44 -07:00
2020-08-05 10:51:40 -07:00