md/raid6: refactor raid5_read_one_chunk
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:44 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commite82ed3a4fbb54b2d7dcb2a7733520f3e10b97abf
tree3c9c99e91b413a52bf0270f1c415250e21830104
parent6a5965696856f5dc6834f351f093cc99bf2f03c8
md/raid6: refactor raid5_read_one_chunk

Refactor raid5_read_one_chunk so that all simple checks are done
before allocating the bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid5.c