Messages in this thread | | | Date | Fri, 21 Oct 2005 11:17:06 -0700 | From | Paul Jackson <> | Subject | Re: [PATCH 4/4] Swap migration V3: sys_migrate_pages interface |
| |
Christoph wrote: > Therefore if mems_allowed is accessed from outside of the > task then it may not be up to date, right?
Yup - exactly.
The up to date allowed memory container for a task is in its cpuset, which does have the locking mechanisms needed for safe access from other tasks.
The task mems_allowed is just a private cache of the mems_allowed of its cpuset, used for quick access from within the task context by the page allocation code.
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.925.600.0401 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |