Commit 2d046fe6 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Li Nan
Browse files

md: convert to blk_alloc_disk/blk_cleanup_disk

mainline inclusion
from mainline-v5.14-rc1
commit 0f1d2e06
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I81XCK

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0f1d2e0643c544df50dbc436da930201218fa1e2



--------------------------------

Convert the md driver to use the blk_alloc_disk and blk_cleanup_disk
helpers to simplify gendisk and request_queue allocation.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210521055116.1053587-15-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Conflict:
	drivers/md/md.c
	the merging order of commit ad3fc798 ("md: revert io
	stats accounting") is inconsistent.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent acd79c2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment