From: Yu Kuai <yukuai1@huaweicloud.com>
To: "Michal Koutný" <mkoutny@suse.com>, "Yu Kuai" <yukuai1@huaweicloud.com>
Cc: tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk,
cgroups@vger.kernel.org, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, yi.zhang@huawei.com,
yangerkun@huawei.com, "yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH] blk-cgroup: fix missing pd_online_fn() while activating policy
Date: Thu, 5 Jan 2023 21:52:29 +0800 [thread overview]
Message-ID: <6f54c858-be91-0fd3-d377-1aabb8a70c6f@huaweicloud.com> (raw)
In-Reply-To: <20230105104241.GA16920@blackbody.suse.cz>
Hi,
在 2023/01/05 18:45, Michal Koutný 写道:
> On Thu, Jan 05, 2023 at 09:43:02AM +0800, Yu Kuai <yukuai1@huaweicloud.com> wrote:
>> This is based only on code review, currently the only negative effects
>> is that root blkg from blk-throtl won't call pd_online_fn().
>
> Good, that's a NOP and there are no other uses of pd_online_fn.
>
> I wonder are the separate pd_init_fn and pd_online_fn callbacks
> necessary today?
I think online can combine to init, consider that only blk-throttle
implement pd_online_fn(), but I'm not sure...
It seems to me the policies(bfq, iocost...) seem don't honor how pd
apis works: alloc->init->online->offline->free, bfq combines online to
init, iocost combines offline to free, ...
Thanks,
Kuai
next prev parent reply other threads:[~2023-01-05 13:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 11:28 Yu Kuai
2023-01-04 15:12 ` Michal Koutný
2023-01-05 1:43 ` Yu Kuai
2023-01-05 10:45 ` Michal Koutný
2023-01-05 13:52 ` Yu Kuai [this message]
2023-01-05 16:59 ` Tejun Heo
2023-01-05 17:00 ` Tejun Heo
2023-01-17 1:01 ` Yu Kuai
2023-01-17 2:04 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6f54c858-be91-0fd3-d377-1aabb8a70c6f@huaweicloud.com \
--to=yukuai1@huaweicloud.com \
--cc=axboe@kernel.dk \
--cc=cgroups@vger.kernel.org \
--cc=josef@toxicpanda.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkoutny@suse.com \
--cc=tj@kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®