From: kernel test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Hongchen Zhang
<zhanghongchen-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>,
Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Zefan Li <lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>,
Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
Cc: kbuild-all-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Hongchen Zhang
<zhanghongchen-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>
Subject: Re: [PATCH] cgroup: wait for css offline when rmdir
Date: Fri, 27 May 2022 16:46:01 +0800 [thread overview]
Message-ID: <202205271657.MRX54zi5-lkp@intel.com> (raw)
In-Reply-To: <1653619158-27607-1-git-send-email-zhanghongchen-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>
Hi Hongchen,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tj-cgroup/for-next]
[also build test WARNING on v5.18 next-20220527]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Hongchen-Zhang/cgroup-wait-for-css-offline-when-rmdir/20220527-104105
base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220527/202205271657.MRX54zi5-lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/9cd51af8f62de826ed76ffb6a63dce3d14926a03
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hongchen-Zhang/cgroup-wait-for-css-offline-when-rmdir/20220527-104105
git checkout 9cd51af8f62de826ed76ffb6a63dce3d14926a03
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash kernel/cgroup/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
All warnings (new ones prefixed by >>):
>> kernel/cgroup/cgroup.c:3024:6: warning: no previous prototype for 'cgroup_wait_css_offline' [-Wmissing-prototypes]
3024 | void cgroup_wait_css_offline(struct cgroup *cgrp)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/cgroup_wait_css_offline +3024 kernel/cgroup/cgroup.c
3022
3023 /* wait all cgrp's csses become offlined */
> 3024 void cgroup_wait_css_offline(struct cgroup *cgrp)
3025 {
3026 struct cgroup_subsys *ss;
3027 int ssid;
3028
3029 lockdep_assert_held(&cgroup_mutex);
3030 for_each_subsys(ss, ssid) {
3031 struct cgroup_subsys_state *css = cgroup_css(cgrp, ss);
3032 DEFINE_WAIT(wait);
3033
3034 if (!css || !percpu_ref_is_dying(&css->refcnt))
3035 continue;
3036
3037 prepare_to_wait(&cgrp->offline_waitq, &wait,
3038 TASK_UNINTERRUPTIBLE);
3039
3040 mutex_unlock(&cgroup_mutex);
3041 schedule();
3042 finish_wait(&cgrp->offline_waitq, &wait);
3043
3044 mutex_lock(&cgroup_mutex);
3045 }
3046 }
3047
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-05-27 8:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 2:39 [PATCH] cgroup: wait for css offline when rmdir Hongchen Zhang
[not found] ` <1653619158-27607-1-git-send-email-zhanghongchen-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>
2022-05-27 8:46 ` kernel test robot [this message]
2022-05-27 8:48 ` Tejun Heo
2022-05-30 1:53 ` Hongchen Zhang
[not found] ` <e74e03f1-cb54-b158-a085-2965fd088d1d-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>
2022-05-31 1:01 ` Tejun Heo
[not found] ` <YpVo4XiIDu68w40Z-NiLfg/pYEd1N0TnZuCh8vA@public.gmane.org>
2022-05-31 3:49 ` Hongchen Zhang
[not found] ` <fbb820c5-dbcb-0f00-c365-d3c57ca27edf-cXZgJK919ebM1kAEIRd3EQ@public.gmane.org>
2022-05-31 17:19 ` Tejun Heo
[not found] ` <YpZOIz/CbQs+aWF6-NiLfg/pYEd1N0TnZuCh8vA@public.gmane.org>
2022-05-31 17:22 ` Tejun Heo
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=202205271657.MRX54zi5-lkp@intel.com \
--to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=kbuild-all-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=zhanghongchen-cXZgJK919ebM1kAEIRd3EQ@public.gmane.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