Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…l/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
  • Loading branch information
Jens Axboe committed May 26, 2021
2 parents c0c8a83 + cc14626 commit 094c271
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -5311,8 +5311,6 @@ static int in_chunk_boundary(struct mddev *mddev, struct bio *bio)
unsigned int chunk_sectors;
unsigned int bio_sectors = bio_sectors(bio);

WARN_ON_ONCE(bio->bi_bdev->bd_partno);

chunk_sectors = min(conf->chunk_sectors, conf->prev_chunk_sectors);
return chunk_sectors >=
((sector & (chunk_sectors - 1)) + bio_sectors);
Expand Down

0 comments on commit 094c271

Please sign in to comment.