From: Jens Axboe <jaxboe@fusionio.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
"Israel G. Lugo" <israel.lugo@lugosys.com>
Subject: Re: [PATCH] cfq-iosched: Reduce linked group count upon group destruction
Date: Tue, 2 Aug 2011 09:24:40 +0200 [thread overview]
Message-ID: <4E37A638.2020304@fusionio.com> (raw)
In-Reply-To: <20110801184702.GF3805@redhat.com>
On 2011-08-01 20:47, Vivek Goyal wrote:
> CFQ keeps track of number of groups which are linked on blkcg->blkg_list.
> This is useful to avoid races between queue exit and cgroup exit code
> paths. So if at the request queue exit time linked group count is not
> zero, that means there are some group out there which is yet to be
> deleted under rcu read period and queue exit code should wait for
> on rcu period.
>
> In my previous patch I forgot to decrease the number of group count.
> So in current form, we nr_blkcg_linked_grps is always non-zero and
> we will always wait one rcu period (if BLK_CGROUP=y). The side effect
> of this is that it can increase boot time. I am surprised, nobody
> complained so far.
Thanks Vivek, applied.
--
Jens Axboe
prev parent reply other threads:[~2011-08-02 7:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 18:47 [PATCH] cfq-iosched: Reduce linked group count upon group destruction Vivek Goyal
2011-08-02 7:24 ` Jens Axboe [this message]
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=4E37A638.2020304@fusionio.com \
--to=jaxboe@fusionio.com \
--cc=israel.lugo@lugosys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@redhat.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