linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: axboe@kernel.dk, linux-block@vger.kernel.org
Subject: Re: [PATCH] blk-cgroup: delay calling blkcg_exit_disk until disk_release
Date: Thu, 9 Feb 2023 16:56:18 +0800	[thread overview]
Message-ID: <Y+S1Mhzd3fPLqute@T590> (raw)
In-Reply-To: <20230209050401.GA8235@lst.de>

On Thu, Feb 09, 2023 at 06:04:01AM +0100, Christoph Hellwig wrote:
> On Thu, Feb 09, 2023 at 07:47:38AM +0800, Ming Lei wrote:
> > Another thing is that blkcg_init_disk() and blkcg_exit_disk() becomes
> > asymmetrical with this patch. So alloc_disk() & add_disk(), del_disk() & put_disk()
> > have to be done together. If it may be documented, this patch looks
> > fine.
> 
> As in no add_disk is allowed after del_gendisk on the same disk?
> It's been like that since basically forever.  I agree that documenting
> it probably doesn't hurt though - but that's separate from this fix.

OK, fair enough,

Reviewed-by: Ming Lei <ming.lei@redhat.com>

Thanks,
Ming


  reply	other threads:[~2023-02-09  8:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08  6:35 [PATCH] blk-cgroup: delay calling blkcg_exit_disk until disk_release Christoph Hellwig
2023-02-08  7:38 ` Ming Lei
2023-02-08 15:12   ` Christoph Hellwig
2023-02-08 23:47     ` Ming Lei
2023-02-09  5:04       ` Christoph Hellwig
2023-02-09  8:56         ` Ming Lei [this message]
2023-02-09 15:12 ` Jens Axboe
2023-02-10  5:05 ` Ming Lei
2023-02-13  8:37   ` Ming Lei
2023-02-13  8:42     ` Christoph Hellwig

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=Y+S1Mhzd3fPLqute@T590 \
    --to=ming.lei@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).