Re: [PATCH v3 3/5] block, bfq: don't disable wbt if CONFIG_BFQ_GROUP_IOSCHED is disabled
From: Yu Kuai
Date: Fri Sep 23 2022 - 05:51:33 EST
Hi, Christoph
在 2022/09/23 16:56, Christoph Hellwig 写道:
On Thu, Sep 22, 2022 at 07:35:56PM +0800, Yu Kuai wrote:
wbt and bfq should work just fine if CONFIG_BFQ_GROUP_IOSCHED is disabled.
Umm, wouldn't this be something decided at runtime, that is not
if CONFIG_BFQ_GROUP_IOSCHED is enable/disable in the kernel build
if the hierarchical cgroup based scheduling is actually used for a
given device?
.
That's a good point,
Before this patch wbt is simply disabled if elevator is bfq.
With this patch, if elevator is bfq while bfq doesn't throttle
any IO yet, wbt still is disabled unnecessarily.
I have an idle to enable/disable wbt while tracking how many bfq_groups
are activated, which will rely on my another patchset, which is not
applied yet...
support concurrent sync io for bfq on a specail occasion.
I think currently this patch do make sense, perhaps I can do more work
after the above patchset finally applied?
Thanks,
Kuai