From: Randy Dunlap <randy.dunlap@oracle.com>
To: Ben Blum <bblum@andrew.cmu.edu>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: mmotm 2010-01-13-12-17 uploaded (cgroup)
Date: Sun, 17 Jan 2010 18:03:14 -0800 [thread overview]
Message-ID: <20100117180314.247bac92.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20100114172006.GA8081@ghc07.ghc.andrew.cmu.edu>
On Thu, 14 Jan 2010 12:20:06 -0500 Ben Blum wrote:
> On Thu, Jan 14, 2010 at 08:07:48AM -0800, Randy Dunlap wrote:
> > On Wed, 13 Jan 2010 12:17:36 -0800 akpm@linux-foundation.org wrote:
> >
> > > The mm-of-the-moment snapshot 2010-01-13-12-17 has been uploaded to
> > >
> > > http://userweb.kernel.org/~akpm/mmotm/
> > >
> > > and will soon be available at
> > >
> > > git://zen-kernel.org/kernel/mmotm.git
> >
> >
> > patch: cgroups-subsystem-module-unloading.patch
> >
> > When CONFIG_MODULE_UNLOAD is not enabled:
> >
> > kernel/cgroup.c:1013: error: implicit declaration of function 'module_refcount'
> >
> >
> >
> > ---
> > ~Randy
> >
>
> Argh, my fault. try_module_get and module_put tricked me by not
> depending on that config option while module_refcount did. Fix here:
>
> From: Ben Blum <bblum@andrew.cmu.edu>
> Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>
>
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 391ff41..32e001e 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -964,7 +964,9 @@ static int rebind_subsystems(struct cgroupfs_root *root,
> * drop the extra reference.
> */
> module_put(ss->module);
> +#ifdef CONFIG_MODULE_UNLOAD
> BUG_ON(ss->module && !module_refcount(ss->module));
> +#endif
> } else {
> /* Subsystem state shouldn't exist */
> BUG_ON(cgrp->subsys[i]);
Thanks.
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
---
~Randy
next prev parent reply other threads:[~2010-01-18 2:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 20:17 mmotm 2010-01-13-12-17 uploaded akpm
2010-01-13 22:16 ` mmotm 2010-01-13-12-17 - 'make oldconfig' dies Valdis.Kletnieks
2010-01-14 16:07 ` mmotm 2010-01-13-12-17 uploaded (cgroup) Randy Dunlap
2010-01-14 17:20 ` Ben Blum
2010-01-18 2:03 ` Randy Dunlap [this message]
2010-01-14 16:18 ` [PATCH -mmotm] tty.h: make function static Randy Dunlap
2010-01-15 19:33 ` mmotm 2010-01-13-12-17 uploaded Jiri Slaby
2010-01-15 23:38 ` oops in uevent_helper [was: mmotm 2010-01-13-12-17 uploaded] Jiri Slaby
2010-01-22 23:52 ` Andrew Morton
2010-02-10 19:54 ` Jiri Slaby
2010-02-11 20:57 ` Andi Kleen
2010-02-11 22:25 ` Andrew Morton
2010-02-12 2:39 ` Neil Horman
2010-02-12 3:10 ` Andrew Morton
2010-02-12 5:21 ` Andi Kleen
2010-02-12 5:27 ` Andrew Morton
2010-02-12 17:06 ` Neil Horman
2010-02-14 17:32 ` Jiri Slaby
2010-02-14 17:54 ` Neil Horman
2010-02-15 20:12 ` Paul E. McKenney
2010-02-15 21:42 ` Neil Horman
2010-02-15 22:16 ` Paul E. McKenney
2010-02-16 1:37 ` Neil Horman
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=20100117180314.247bac92.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=bblum@andrew.cmu.edu \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®