From: Jens Axboe <axboe@kernel.dk>
To: Zhou Chengming <zhouchengming1@huawei.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
miaoxie@huawei.com
Subject: Re: [PATCH v2] don't forget to call pd_online_fn when activate policy
Date: Fri, 10 Mar 2017 08:12:29 -0700 [thread overview]
Message-ID: <54047101-8ad6-a4fd-dda6-25c2551a3a3c@kernel.dk> (raw)
In-Reply-To: <1489026008-161611-1-git-send-email-zhouchengming1@huawei.com>
On 03/08/2017 07:20 PM, Zhou Chengming wrote:
> When we activate policy on the request_queue, we will create policy_date
> for all the existing blkgs of the request_queue, so we should call
> pd_init_fn() and pd_online_fn() on these newly created policy_data.
>
> Signed-off-by: Zhou Chengming <zhouchengming1@huawei.com>
> ---
> block/blk-cgroup.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
> index 8ba0af7..0dd9e76 100644
> --- a/block/blk-cgroup.c
> +++ b/block/blk-cgroup.c
> @@ -1254,6 +1254,12 @@ int blkcg_activate_policy(struct request_queue *q,
> pd->plid = pol->plid;
> if (pol->pd_init_fn)
> pol->pd_init_fn(pd);
> +
> + if (pol->pd_online_fn) {
> + spin_lock(blkg->blkcg->lock);
> + pol->pd_online_fn(pd);
> + spin_unlock(blkg->blkcg->lock);
> + }
You didn't even compile this, did you?
--
Jens Axboe
next prev parent reply other threads:[~2017-03-10 15:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 2:20 Zhou Chengming
2017-03-10 12:44 ` kbuild test robot
2017-03-10 15:12 ` Jens Axboe [this message]
2017-03-11 3:46 ` zhouchengming
2017-03-11 3:59 ` 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=54047101-8ad6-a4fd-dda6-25c2551a3a3c@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miaoxie@huawei.com \
--cc=zhouchengming1@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®