lkml.org 
[lkml]   [2015]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] mm, oom: introduce oom reaper
On Thu, 17 Dec 2015 11:55:11 -0800 Linus Torvalds <torvalds@linux-foundation.org> wrote:

> On Thu, Dec 17, 2015 at 5:02 AM, Michal Hocko <mhocko@kernel.org> wrote:
> > Ups. You are right. I will go with msleep_interruptible(100).
>
> I don't think that's right.
>
> If a signal happens, that loop is now (again) just busy-looping.

It's called only by a kernel thread so no signal_pending(). This
relationship is a bit unobvious and fragile, but we do it in quite a
few places.



\
 
 \ /
  Last update: 2015-12-17 21:21    [W:0.100 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site