From: Pavel Machek <pavel@ucw.cz>
To: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
lhcs-devel@lists.sourceforge.net,
Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: [PATCH][2.6-mm] split drain_local_pages
Date: Mon, 16 Feb 2004 23:44:25 +0100 [thread overview]
Message-ID: <20040216224425.GB6628@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0402161720390.11793@montezuma.fsmlabs.com>
Hi!
> CPU hotplug core needs to pass a cpu parameter to drain_local_pages, it's
> safe to call __drain_local_pages if the cpu being drained is offline. The
> semantics for drain_local_pages do not change.
The idea looks good to me, but there's something wrong with the patch:
> Index: linux-2.6.3-rc3-mm1/mm/page_alloc.c
> ===================================================================
> RCS file: /home/cvsroot/linux-2.6.3-rc3-mm1/mm/page_alloc.c,v
> retrieving revision 1.1.1.1
> diff -u -p -B -r1.1.1.1 page_alloc.c
> --- linux-2.6.3-rc3-mm1/mm/page_alloc.c 16 Feb 2004 20:42:50 -0000 1.1.1.1
> +++ linux-2.6.3-rc3-mm1/mm/page_alloc.c 16 Feb 2004 21:58:19 -0000
> @@ -414,19 +414,19 @@ int is_head_of_free_region(struct page *
> }
>
> /*
> - * Spill all of this CPU's per-cpu pages back into the buddy allocator.
> + * drain_local_pages helper, this is only safe to use when the cpu
> + * being drained isn't currently online.
> */
> -void drain_local_pages(void)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It was void before...
> @@ -1574,7 +1586,7 @@ static int page_alloc_cpu_notify(struct
> count = &per_cpu(nr_pagecache_local, cpu);
> atomic_add(*count, &nr_pagecache);
> *count = 0;
> - drain_local_pages(cpu);
...but code was passing cpu? The old version could not have compiled
according to the patch..
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next prev parent reply other threads:[~2004-02-16 22:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-16 22:40 Zwane Mwaikambo
2004-02-16 22:44 ` Pavel Machek [this message]
2004-02-16 22:53 ` Zwane Mwaikambo
2004-02-16 23:06 ` Andrew Morton
2004-02-17 5:07 ` Rusty Russell
2004-02-17 7:29 ` Rusty Russell
2004-02-17 9:37 ` Zwane Mwaikambo
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=20040216224425.GB6628@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=lhcs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=zwane@linuxpower.ca \
/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®