lkml.org 
[lkml]   [2014]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/4] OOM, PM: OOM killed task shouldn't escape PM suspend
    Hi!
    >
    > +/*
    > + * Number of OOM killer invocations (including memcg OOM killer).
    > + * Primarily used by PM freezer to check for potential races with
    > + * OOM killed frozen task.
    > + */
    > +static atomic_t oom_kills = ATOMIC_INIT(0);
    > +
    > +int oom_kills_count(void)
    > +{
    > + return atomic_read(&oom_kills);
    > +}
    > +
    > +void note_oom_kill(void)
    > +{
    > + atomic_inc(&oom_kills);
    > +}
    > +

    Do we need the extra abstraction here? Maybe oom_kills should be
    exported directly?
    Pavel

    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2014-10-26 20:21    [W:4.144 / U:0.244 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site