From: Li Nan <linan122@xxxxxxxxxx> The patch series fix the bug of writing raid sysfs. Changes in v2: - in patch 1, move check out of md_bitmap_checkpage(). - in patch 2, use div64_u64() and DIV64_U64_ROUND_UP() instead of directly '/', and chang old_delay/old_delay to unsigned int. - in patch 4, use 'goto' to make changes more readable. Changes in v2: - add patch "md/raid10: optimize check_decay_read_errors()". - in patch 2, return ret-value of strict_strtoul_scaled if error occurs. - in patch 3, optimize format. Li Nan (4): md/raid10: fix slab-out-of-bounds in md_bitmap_get_counter md/raid10: fix overflow in safe_delay_store md/raid10: fix wrong setting of max_corr_read_errors md/raid10: optimize check_decay_read_errors() drivers/md/md-bitmap.c | 17 ++++----- drivers/md/md.c | 78 ++++++++++++++++++++++++++---------------- drivers/md/raid10.c | 41 +++++++++++++--------- 3 files changed, 82 insertions(+), 54 deletions(-) -- 2.31.1