lkml.org 
[lkml]   [2023]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH OLK-5.10 v3 0/4] md: bugfix of writing raid sysfs
Date
From: Li Nan <linan122@huawei.com>

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

\
 
 \ /
  Last update: 2023-05-15 15:50    [W:0.082 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site