From: Andrew Morton <akpm@osdl.org>
To: Nigel Cunningham <ncunningham@linuxmail.org>
Cc: davej@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] SMP support for drain local pages v2.
Date: Wed, 26 May 2004 16:26:07 -0700 [thread overview]
Message-ID: <20040526162607.0f177009.akpm@osdl.org> (raw)
In-Reply-To: <40B520A2.2060508@linuxmail.org>
Nigel Cunningham <ncunningham@linuxmail.org> wrote:
>
> +/*
> + * Spill per-cpu pages on all CPUs back into the buddy allocator.
> + * The first function is just to avoid a compiler warning.
> + */
> +static void __smp_drain_local_pages(void * data)
> +{
> + drain_local_pages();
> +}
> +
> +void smp_drain_local_pages(void)
> +{
> + on_each_cpu(__smp_drain_local_pages, NULL, 0, 1);
> +}
I think we only need a single entry point. Make it a new "drain_percpu_pages()"
or such to break unconverted callers, switch callers of drain_local_pages()
over to the new function. It needs no SMP ifdefs in it - on_each_cpu() will
do the right thing on UP.
But until something which needs this change is merged into the tree I'd say
that this patch should live with the patch which requires it.
next prev parent reply other threads:[~2004-05-26 23:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-26 10:39 [PATCH] SMP support for drain local pages Nigel Cunningham
2004-05-26 22:32 ` Dave Jones
2004-05-26 22:56 ` [PATCH] SMP support for drain local pages v2 Nigel Cunningham
2004-05-26 23:26 ` Andrew Morton [this message]
2004-05-26 23:38 ` Nigel Cunningham
2004-05-26 23:56 ` Andrew Morton
2004-05-26 23:56 ` Nigel Cunningham
2004-05-27 19:29 ` Pavel Machek
2004-05-27 21:22 ` Nigel Cunningham
2004-05-27 19:25 ` [PATCH] SMP support for drain local pages Pavel Machek
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=20040526162607.0f177009.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ncunningham@linuxmail.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®