Re: [PATCH 6/6] mm, oom: fortify task_will_free_mem

From: Michal Hocko
Date: Fri May 27 2016 - 07:08:09 EST


I have updated the patch to not rely on the mm_users check because it is
not reliable as pointed by Tetsuo and we really want this function to be
reliable. I do not have a good and reliable way to check for existence
of external users sharing the mm so we are checking the whole list
unconditionally if mm_users > 1. This should be acceptable because we
are doing this only in the slow path of task_will_free_mem. We can
surely make this more optimum later.
---