From: Andi Kleen <andi@firstfloor.org>
To: Cliff Wickman <cpw@sgi.com>
Cc: linux-numa@vger.kernel.org
Subject: Re: libnuma/numactl 2.0.4 release announced
Date: Tue, 27 Jul 2010 08:53:25 +0200 [thread overview]
Message-ID: <20100727065325.GA7813@basil.fritz.box> (raw)
In-Reply-To: <20100726222921.GA20613@sgi.com>
On Mon, Jul 26, 2010 at 05:29:21PM -0500, Cliff Wickman wrote:
> Hi linux-numa members,
>
> libnuma/numactl release 2.0.4 was announced today on freshmeat.net.
>
> The tarball is at ftp://oss.sgi.com/www/projects/libnuma/download/
> and the CHANGES file within it list the patches since 2.0.3.
>
> Thanks especially to those who provided patches and testing.
Cliff,
I actually found a bug now (looks like exactly one day too late,
how it goes).
The new code does not correct for the -1 quirk in the kernel API for node
masks, unlike the v1 code did. So the last bit in the node masks is going to
be missed.
-Andi
diff -u numactl-2.0.4-rc1/libnuma.c-o numactl-2.0.4-rc1/libnuma.c
--- numactl-2.0.4-rc1/libnuma.c-o 2010-07-27 08:49:51.000000000 +0200
+++ numactl-2.0.4-rc1/libnuma.c 2010-07-27 08:51:20.000000000 +0200
@@ -249,19 +249,19 @@
static void setpol(int policy, struct bitmask *bmp)
{
- if (set_mempolicy(policy, bmp->maskp, bmp->size) < 0)
+ if (set_mempolicy(policy, bmp->maskp, bmp->size + 1) < 0)
numa_error("set_mempolicy");
}
static void getpol(int *oldpolicy, struct bitmask *bmp)
{
- if (get_mempolicy(oldpolicy, bmp->maskp, bmp->size, 0, 0) < 0)
+ if (get_mempolicy(oldpolicy, bmp->maskp, bmp->size + 1, 0, 0) < 0)
numa_error("get_mempolicy");
}
static void dombind(void *mem, size_t size, int pol, struct bitmask *bmp)
{
- if (mbind(mem, size, pol, bmp ? bmp->maskp : NULL, bmp ? bmp->size : 0,
+ if (mbind(mem, size, pol, bmp ? bmp->maskp : NULL, bmp ? bmp->size + 1 : 0,
mbind_flags) < 0)
numa_error("mbind");
}
prev parent reply other threads:[~2010-07-27 6:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-26 22:29 libnuma/numactl 2.0.4 release announced Cliff Wickman
2010-07-27 6:53 ` Andi Kleen [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=20100727065325.GA7813@basil.fritz.box \
--to=andi@firstfloor.org \
--cc=cpw@sgi.com \
--cc=linux-numa@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.