From: Tejun Heo <tj@kernel.org>
To: Jiang Biao <jiang.biao2@zte.com.cn>
Cc: axboe@kernel.dk, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn,
wen.yang99@zte.com.cn
Subject: Re: [PATCH 2/2] blkcg: init root blkcg_gq under lock
Date: Thu, 26 Apr 2018 12:18:47 -0700 [thread overview]
Message-ID: <20180426191847.GS1911913@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <1524110769-107033-1-git-send-email-jiang.biao2@zte.com.cn>
Hello,
On Thu, Apr 19, 2018 at 12:06:09PM +0800, Jiang Biao wrote:
> The initializing of q->root_blkg is currently outside of queue lock
> and rcu, so the blkg may be destroied before the initializing, which
> may cause dangling/null references. On the other side, the destroys
> of blkg are protected by queue lock or rcu. Put the initializing
> inside the queue lock and rcu to make it safer.
Hmm... I can't think of a scenario where the above could happen. The
queue is still being initialized and no one else has access to it, so
I can't see how it could be destroyed. Can you please describe the
sequence of events? Have you actually observed this happening?
Thanks.
--
tejun
prev parent reply other threads:[~2018-04-26 19:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 4:06 Jiang Biao
2018-04-26 19:18 ` Tejun Heo [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=20180426191847.GS1911913@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=axboe@kernel.dk \
--cc=jiang.biao2@zte.com.cn \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wen.yang99@zte.com.cn \
--cc=zhong.weidong@zte.com.cn \
/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
Powered by JetHome