Files
linux/drivers/md
Xiao Ni de3544d2e5 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: d0d2d8ba04 ("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>
2026-03-23 02:15:10 +08:00
..
2025-08-19 11:12:50 +02:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2024-11-20 11:38:04 +01:00
2026-01-26 15:36:22 +01:00
2025-11-05 08:07:21 -07:00
2025-01-13 07:36:29 -08:00
2026-02-02 15:39:55 +08:00
2026-01-26 13:17:38 +08:00
2026-01-26 13:17:38 +08:00
2026-01-26 13:17:38 +08:00