diff options
| author | Li Nan <linan122@huawei.com> | 2026-01-05 19:02:51 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@fnnas.com> | 2026-01-26 13:16:09 +0800 |
| commit | 4870b0f59c1ad3aae05734a833fe7c3ae90bec09 (patch) | |
| tree | 59fb4ef0a1d7801e9ae9b57f03a2649ee8e506e4 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 2a5d4549a28da76fa426aaeab0a8561bfc6194c3 (diff) | |
md/raid1,raid10: support narrow_write_error when badblocks is disabled
When badblocks.shift < 0 (badblocks disabled), narrow_write_error()
return false, preventing write error handling. Since narrow_write_error()
only splits IO into smaller sizes and re-submits, it can work with
badblocks disabled.
Adjust to use the logical block size for block_sectors when badblocks is
disabled, allowing narrow_write_error() to function in this case.
Link: https://lore.kernel.org/linux-raid/20260105110300.1442509-4-linan666@huaweicloud.com
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai@fnnas.com>
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
