> > + if (verbose) {
> > + task_lock(p);
>
> We need to be careful with which locks we take on the oom-killer path,
> because it can be called by code which already holds locks. But I
> expect task_lock() will be OK.
Sure.
task_lock() is already used various oom path. I think this is
kill process 2341 (memhog) score 527276 or a child
Killed process 2341 (memhog) vsz:1054552kB, anon-rss:970588kB, file-rss:4kB
=======
^
|
here
Signed-off-by:
> Hello,
> I'm not sure how to handle this,
> while compiling firefox-3.6b1.source
> I get this with the default compiling options,
> as well as custom:
>
>
> [ 532.942324] cc1plus invoked oom-killer: gfp_mask=0x280da, order=0,
> oom_adj=0
> [ 532.942330] Pid: 16002, comm: cc1plus Tainted: P
>