On Wednesday 26 April 2006 20:33, Nick Piggin wrote:
Dave Peterson wrote:
If you prefer the above implementation, I can rework the patch as
above.
I think you need a semaphore?
In this particular case, I think a semaphore is unnecessary because
we just want out_of_memory() to return to its caller if an OOM kill
is already in progress (as opposed to waiting in out_of_memory() and
then starting a new OOM kill operation). What I want to avoid is the
Mainly the cost of increasing cacheline footprint. I think someone
suggested using a flag bit somewhere... that'd be preferable.
Ok, I'll add a ->flags member to mm_struct and just use one bit for
the oom_notify value. Then if other users of mm_struct need flag
bits for other things in the future they can all share ->flags. I'll
rework my patches and repost shortly...