linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Sedat Dilek <sedat.dilek@gmail.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org, linux-next@vger.kernel.org
Subject: Re: mmotm 2013-07-02-15-32 uploaded (mm/memcontrol.c)
Date: Wed, 3 Jul 2013 19:29:04 +0200	[thread overview]
Message-ID: <CA+icZUUTiL_92tS1Xr+f=z5MfCbXqBDg-7Tm3Csn4gTiQyB18A@mail.gmail.com> (raw)
In-Reply-To: <51D45D1A.9060407@infradead.org>

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

On Wed, Jul 3, 2013 at 7:19 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
> On 07/02/13 15:34, akpm@linux-foundation.org wrote:
>> The mm-of-the-moment snapshot 2013-07-02-15-32 has been uploaded to
>>
>>    http://www.ozlabs.org/~akpm/mmotm/
>>
>> mmotm-readme.txt says
>>
>> README for mm-of-the-moment:
>>
>> http://www.ozlabs.org/~akpm/mmotm/
>>
>
> on i386 and x86_64, in mmotm and linux-next of 20130703:
>
>
> mm/built-in.o: In function `mem_cgroup_css_free':
> memcontrol.c:(.text+0x39e67): undefined reference to `mem_cgroup_sockets_destroy'
>

Known issue in Linux-next.
See attached "unofficial" patch with references.

- Sedat -

>
> One failing randconfig file is attached.
>
> --
> ~Randy

[-- Attachment #2: memcg-use-css_get-put-when-charging-uncharging-kmem-fix-2.patch --]
[-- Type: application/octet-stream, Size: 2326 bytes --]

From a9ac8afaedff5f48052afdf52cfea4fd3541d26e Mon Sep 17 00:00:00 2001
From: Li Zefan <lizefan@huawei.com>
Date: Wed, 3 Jul 2013 15:00:13 +0200
Subject: [PATCH] memcg: fix build error if CONFIG_MEMCG_KMEM=n

Fix this build error:

mm/built-in.o: In function `mem_cgroup_css_free':
memcontrol.c:(.text+0x5caa6): undefined reference to 'mem_cgroup_sockets_destroy'

Maybe it's better to add memcg_destroy_kmem(), to pair with memcg_init_kmem().

This patch can be folded into "memcg: use css_get/put when charging/uncharging kmem".

Rename the patch as it is a follow-up for the mmotm tree:
"memcg-use-css_get-put-when-charging-uncharging-kmem-fix-2.patch"

See [1] for the original patch and follow the discussion in [2].

[1] http://marc.info/?l=linux-mm&m=137285590123430&w=2
[2] http://marc.info/?t=137285378500005&r=1&w=2

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Li Zefan <lizefan@huawei.com>
---
[ dileks:
  * Add comments from Li Zefan
  * Add suggestion for new patch-name from Michal
  * Add references to orig-patch and discussion ]

 mm/memcontrol.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index d6a3e56..00a7a66 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5896,6 +5896,11 @@ static int memcg_init_kmem(struct mem_cgroup *memcg, struct cgroup_subsys *ss)
 	return mem_cgroup_sockets_init(memcg, ss);
 }
 
+static void memcg_destroy_kmem(struct mem_cgroup *memcg)
+{
+	mem_cgroup_sockets_destroy(memcg);
+}
+
 static void kmem_cgroup_css_offline(struct mem_cgroup *memcg)
 {
 	if (!memcg_kmem_is_active(memcg))
@@ -5935,6 +5940,10 @@ static int memcg_init_kmem(struct mem_cgroup *memcg, struct cgroup_subsys *ss)
 	return 0;
 }
 
+static void memcg_destroy_kmem(struct mem_cgroup *memcg)
+{
+}
+
 static void kmem_cgroup_css_offline(struct mem_cgroup *memcg)
 {
 }
@@ -6332,8 +6341,7 @@ static void mem_cgroup_css_free(struct cgroup *cont)
 {
 	struct mem_cgroup *memcg = mem_cgroup_from_cont(cont);
 
-	mem_cgroup_sockets_destroy(memcg);
-
+	memcg_destroy_kmem(memcg);
 	__mem_cgroup_free(memcg);
 }
 
-- 
1.8.3.2


      reply	other threads:[~2013-07-03 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02 22:34 mmotm 2013-07-02-15-32 uploaded akpm
2013-07-03  7:44 ` Sedat Dilek
2013-07-03 23:04   ` Davidlohr Bueso
2013-07-03 15:50 ` since-3.10 branch opened for mm git tree Michal Hocko
2013-07-03 17:19 ` mmotm 2013-07-02-15-32 uploaded (mm/memcontrol.c) Randy Dunlap
2013-07-03 17:29   ` Sedat Dilek [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='CA+icZUUTiL_92tS1Xr+f=z5MfCbXqBDg-7Tm3Csn4gTiQyB18A@mail.gmail.com' \
    --to=sedat.dilek@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rdunlap@infradead.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