]> git.baikalelectronics.ru Git - kernel.git/commit
md: remove md_bio_alloc_sync
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:43 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commitf5a6e62cf1d8f4ba60a07d51c2c8979824e8804f
tree5dfb9425470b361f923293eeaf274e9256c72898
parent056339df2c1dabe796432adf87a4d12159c1ebe6
md: remove md_bio_alloc_sync

md_bio_alloc_sync is never called with a NULL mddev, and ->sync_set is
initialized in md_run, so it always must be initialized as well.  Just
open code the remaining call to bio_alloc_bioset.

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/md.c