Skip to content

Commit cc14626

Browse files
Christoph Hellwigliu-song-6
authored andcommitted
md/raid5: remove an incorrect assert in in_chunk_boundary
Now that the original bdev is stored in the bio this assert is incorrect and will trigger for any partitioned raid5 device. Reported-by: Florian Dazinger <[email protected]> Tested-by: Florian Dazinger <[email protected]> Cc: [email protected] # 5.12 Fixes: 309dca3 ("block: store a block_device pointer in struct bio"), Reviewed-by: Guoqing Jiang <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Song Liu <[email protected]>
1 parent bc6a385 commit cc14626

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/md/raid5.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5311,8 +5311,6 @@ static int in_chunk_boundary(struct mddev *mddev, struct bio *bio)
53115311
unsigned int chunk_sectors;
53125312
unsigned int bio_sectors = bio_sectors(bio);
53135313

5314-
WARN_ON_ONCE(bio->bi_bdev->bd_partno);
5315-
53165314
chunk_sectors = min(conf->chunk_sectors, conf->prev_chunk_sectors);
53175315
return chunk_sectors >=
53185316
((sector & (chunk_sectors - 1)) + bio_sectors);

0 commit comments

Comments
 (0)