]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: remove an incorrect assert in in_chunk_boundary
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2021 06:22:15 +0000 (08:22 +0200)
committerSong Liu <song@kernel.org>
Wed, 26 May 2021 01:03:15 +0000 (18:03 -0700)
commit7b31b256e2c04e6ef26275eed17e7edfa63622c4
tree189ee7487936b034c12d45324b0194173efb2bc6
parentc2f6b457f2241fac997da31563862b2b885d2b01
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 <spam02@dazinger.net>
Tested-by: Florian Dazinger <spam02@dazinger.net>
Cc: stable@vger.kernel.org # 5.12
Fixes: 85774780ef96 ("block: store a block_device pointer in struct bio"),
Reviewed-by: Guoqing Jiang <jiangguoqing@kylinos.cn>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c