Skip to content

Commit 094c271

Browse files
committed
Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-5.13
Pull MD fix from Song. * 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: md/raid5: remove an incorrect assert in in_chunk_boundary
2 parents c0c8a83 + cc14626 commit 094c271

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)