The way this works is
If I select memory resource controller, CONFIG_MM_OWNER is set to y, else it
does not even show up in the .config
do_each_thread(), while_each_thread() walks all processes and threads of those
processes in the system. It is a common pattern used in the kernel (see
try_to_freeze_tasks() or oom_kill_task() for example).
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
--