From: Tejun Heo <tj@kernel.org>
To: Hongchen Zhang <zhanghongchen@loongson.cn>
Cc: Zefan Li <lizefan.x@bytedance.com>,
Johannes Weiner <hannes@cmpxchg.org>,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cgroup: wait for css offline when rmdir
Date: Tue, 31 May 2022 07:22:35 -1000 [thread overview]
Message-ID: <YpZO26mJ3Wm0AeHo@slm.duckdns.org> (raw)
In-Reply-To: <YpZOIz/CbQs+aWF6@slm.duckdns.org>
On Tue, May 31, 2022 at 07:19:31AM -1000, Tejun Heo wrote:
> Maybe just keep the sequence numbers for started and completed offline
> operations and wait for completed# to reach the started# on memcg alloc
> failure and retry? Note that we can get live locked, so have to remember the
> sequence number to wait for at the beginning. Or, even simpler, maybe it'd
> be enough to just do synchronize_rcu() and then wait for the offline wait
> once and retry.
Also, given that it's an memcg ID issue. It probably makes sense to
implement it on the memcg side.
Thanks.
--
tejun
prev parent reply other threads:[~2022-05-31 17:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 2:39 Hongchen Zhang
2022-05-27 8:46 ` kernel test robot
2022-05-27 8:48 ` Tejun Heo
2022-05-30 1:53 ` Hongchen Zhang
2022-05-31 1:01 ` Tejun Heo
2022-05-31 3:49 ` Hongchen Zhang
2022-05-31 17:19 ` Tejun Heo
2022-05-31 17:22 ` 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=YpZO26mJ3Wm0AeHo@slm.duckdns.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=zhanghongchen@loongson.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
all inboxes | Powered by JetHome®