Commit 7a671a1c authored by Zhong Jinghua's avatar Zhong Jinghua Committed by Li Nan
Browse files

block: call blk_get_queue earlier in __device_add_disk



hulk inclusion
category: bugfix
bugzilla: 188733

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

When adding a disk, first obtain the reference count of the request_queue,
and release the reference count when error handling, which will make it
easier for the driver to add error handling.

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