]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c12604d602711c3c637ba3aef7d6f4d4d22c84b
tree3c9c99e91b413a52bf0270f1c415250e21830104
parentbcbdf128bfb419440cea4ddfb3fcadbe4c74c044
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