[Devel] [PATCH rh7 4/6] oom: introduce oom timeout

Vladimir Davydov vdavydov at parallels.com
Fri Sep 11 06:51:49 PDT 2015


On Fri, Sep 11, 2015 at 04:41:57PM +0300, Kirill Tkhai wrote:
...
> > +		/* Expired? */
> > +		if (time_after(now, ctx->oom_start + OOM_TIMEOUT))
> > +			continue;
> > +
> > +		timeout = ctx->oom_start + OOM_TIMEOUT - now;
> > +		BUG_ON(timeout == 0);
> 
> now may be less or more than (oom_start + OOM_TIMEOUT), so why can't
> it be equal? Did you mean time_after_eq() above?

Yeah, exactly. I should've used time_after_eq.

Thanks.



More information about the Devel mailing list