Commit 15096078 authored by Ye Bin's avatar Ye Bin Committed by Zheng Zengkai
Browse files

block: avoid quiesce while elevator init

hulk inclusion
category: bugfix
bugzilla: 185781 https://gitee.com/openeuler/kernel/issues/I4DDEL



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

As blk_mq_quiesce_queue in elevator_init_mq will wait a RCU gap which want to
make sure no IO will happen while blk_mq_init_sched. If there is lots of
device will lead to boot slowly.
To address this issue, according to Lei Ming's suggestion:
"We are called before adding disk, when there isn't any FS I/O, so freezing
queue plus canceling dispatch work is enough to drain any dispatch activities
originated from passthrough requests, then no need to quiesce queue which may
add long boot latency, especially when lots of disks are involved."

Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Reviewed-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 7c24452c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment