From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205AbaFBXsu (ORCPT ); Mon, 2 Jun 2014 19:48:50 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:50073 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126AbaFBXss (ORCPT ); Mon, 2 Jun 2014 19:48:48 -0400 Date: Mon, 2 Jun 2014 16:48:46 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Hugh Dickins cc: Andrew Morton , Johannes Weiner , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [patch] mm, memcg: periodically schedule when emptying page list In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Jun 2014, Hugh Dickins wrote: > Why not just move that cond_resched() down below the if/else? > No need to test need_resched() separately, and this page is not busy. > Would you like to propose your version from our kernel instead?