Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1499412

Re: [PATCH v2 4/4] mm: make unreserve highatomic functions reliable

From Minchan Kim <minchan@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 4/4] mm: make unreserve highatomic functions reliable
Date 2016-10-12 10:10 +0200
Message-ID <srmLU-1Do-3@gated-at.bofh.it> (permalink)
References <srkqJ-8qe-3@gated-at.bofh.it> <srkqK-8qe-11@gated-at.bofh.it> <srmLU-1Do-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 12, 2016 at 09:33:28AM +0200, Michal Hocko wrote:
> On Wed 12-10-16 14:33:36, Minchan Kim wrote:
> [...]
> > @@ -2138,8 +2146,10 @@ static bool unreserve_highatomic_pageblock(const struct alloc_context *ac)
> >  			 */
> >  			set_pageblock_migratetype(page, ac->migratetype);
> >  			ret = move_freepages_block(zone, page, ac->migratetype);
> > -			spin_unlock_irqrestore(&zone->lock, flags);
> > -			return ret;
> > +			if (!drain && ret) {
> > +				spin_unlock_irqrestore(&zone->lock, flags);
> > +				return ret;
> > +			}
> 
> I've already mentioned that during the previous discussion. This sounds

Yeb, we did but I sent wrong version in my git tree. :(

> overly aggressive to me. Why do we want to drain the whole reserve and
> risk that we won't be able to build up a new one after OOM. Doing one
> block at the time should be sufficient IMHO.

I will resend with updating with every reveiw points.

Thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] use up highorder free pages before OOM Minchan Kim <minchan@kernel.org> - 2016-10-12 07:40 +0200
  [PATCH v2 4/4] mm: make unreserve highatomic functions reliable Minchan Kim <minchan@kernel.org> - 2016-10-12 07:40 +0200
    Re: [PATCH v2 4/4] mm: make unreserve highatomic functions reliable Vlastimil Babka <vbabka@suse.cz> - 2016-10-12 09:30 +0200
    Re: [PATCH v2 4/4] mm: make unreserve highatomic functions reliable Minchan Kim <minchan@kernel.org> - 2016-10-12 10:10 +0200
    Re: [PATCH v2 4/4] mm: make unreserve highatomic functions reliable Michal Hocko <mhocko@kernel.org> - 2016-10-12 10:40 +0200
  [PATCH v2 1/4] mm: don't steal highatomic pageblock Minchan Kim <minchan@kernel.org> - 2016-10-12 07:40 +0200

csiph-web