linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* numa_get_mems_allowed bug
@ 2010-11-27  3:24 Michael Spiegel
  2010-11-29 19:19 ` Michael Spiegel
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Spiegel @ 2010-11-27  3:24 UTC (permalink / raw)
  To: linux-numa

Happy Thanksgiving to all.  It appears that numa_get_mems_allowed()
does not use the MPOL_F_MEMS_ALLOWED flag.  The return value I receive
when calling this function is an empty nodemask.  I've put together a
hack that uses MPOL_F_MEMS_ALLOWED, and I get the correct nodemask.
The hack I put together does not do the proper error checking that is
performed by getpol().  I'm not sure what is the best patch to fix the
issue.  Perhaps add a third argument to getpol() that accepts an
unsigned long flag?

Cheers,
--Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-29 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-27  3:24 numa_get_mems_allowed bug Michael Spiegel
2010-11-29 19:19 ` Michael Spiegel
2010-11-29 19:35   ` Andi Kleen
2010-11-29 21:09     ` Cliff Wickman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).