mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	vgoyal@redhat.com, Shirish Pargaonkar <spargaonkar@suse.com>,
	axboe@kernel.dk
Subject: Re: [PATCH] blkio: Release blkg infrastructure only after last policy is deactivated.
Date: Tue, 24 Jun 2014 17:43:40 -0400	[thread overview]
Message-ID: <20140624214340.GE14909@htj.dyndns.org> (raw)
In-Reply-To: <CADT32eJPAty_yGA5UGZV9h7XHN_8Sn70v1vhRRn7+URvU+URGA@mail.gmail.com>

Hello,

On Tue, Jun 24, 2014 at 04:37:58PM -0500, Shirish Pargaonkar wrote:
> When we start from blk_cleanup_queue(), we put request queue in bypass mode,
> drain it (and service queues), and then destroy blkcgs (explicitly)
> 
> When we start from blk_release_queue(), we do not drain first and then
> destroy blkcgs.  So if we destroy blkcg and then call (implicitly) and
> bail out of
> blk_drain_queue, we would not have drained the service queues which
> is not what we want.

I'm not really following you.  What do you mean "when we start from
blk_release_queue()"?  blk_release_queue() is called after the last
put which can only follow blk_cleanup_queue() if the queue is fully
initialized.  The queue is already in bypass mode and fully drained by
the time control reaches blk_release_queue().  Module [un]load
re-invoking the path doesn't change anything.

> I do not see any harm in waiting till end to release blkcgs (as I understand).

Well, the harm there is not freeing those blkgs unless all the blkcg
policies are unloaded which is usually never on most systems.

Thanks.

-- 
tejun

  reply	other threads:[~2014-06-24 21:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23 18:52 shirishpargaonkar
2014-06-23 18:56 ` Shirish Pargaonkar
2014-06-24 21:09 ` Tejun Heo
2014-06-24 21:37   ` Shirish Pargaonkar
2014-06-24 21:43     ` Tejun Heo [this message]
2014-07-04 17:18       ` Tejun Heo
2014-07-04 18:54         ` Shirish Pargaonkar

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=20140624214340.GE14909@htj.dyndns.org \
    --to=tj@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shirishpargaonkar@gmail.com \
    --cc=spargaonkar@suse.com \
    --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

all inboxes | Powered by JetHome®