Re: numa_get_mems_allowed bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To stimulate some discussion, here is the patch file for the issue.
It does the appropriate error checking.  The patch does not use
getpol(), my question was whether it should call the function or not.

--Michael

On Fri, Nov 26, 2010 at 10:24 PM, Michael Spiegel
<michael.m.spiegel@xxxxxxxxx> wrote:
> 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
>

Attachment: numactl-mems-allowed.patch
Description: Binary data


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux