diff options
| author | Xiao Ni <xni@redhat.com> | 2026-03-05 09:18:33 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@fnnas.com> | 2026-03-23 02:15:10 +0800 |
| commit | de3544d2e5ea99064498de3c21ba490155864657 (patch) | |
| tree | 94acaa6378dfb70cbee9d489621c88322df12c6f /rust/kernel/gpu/git@git.tavy.me:linux-stable.git | |
| parent | 52e4324935be917f8f3267354b3cc06bb8ffcec1 (diff) | |
md/raid1: fix the comparing region of interval tree
Interval tree uses [start, end] as a region which stores in the tree.
In raid1, it uses the wrong end value. For example:
bio(A,B) is too big and needs to be split to bio1(A,C-1), bio2(C,B).
The region of bio1 is [A,C] and the region of bio2 is [C,B]. So bio1 and
bio2 overlap which is not right.
Fix this problem by using right end value of the region.
Fixes: d0d2d8ba0494 ("md/raid1: introduce wait_for_serialization")
Signed-off-by: Xiao Ni <xni@redhat.com>
Link: https://lore.kernel.org/linux-raid/20260305011839.5118-2-xni@redhat.com/
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Diffstat (limited to 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
