Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752632AbdGCH3Q (ORCPT ); Mon, 3 Jul 2017 03:29:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37064 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbdGCH3O (ORCPT ); Mon, 3 Jul 2017 03:29:14 -0400 Date: Mon, 3 Jul 2017 09:29:14 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: Yu Zhao , David Rientjes , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Michal Hocko , Vladimir Davydov , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 4.4 24/30] swap: cond_resched in swap_cgroup_prepare() Message-ID: <20170703072914.GD5888@kroah.com> References: <20170619152033.211450261@linuxfoundation.org> <20170619152034.567871881@linuxfoundation.org> <1498757023.1935.57.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1498757023.1935.57.camel@codethink.co.uk> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 30 On Thu, Jun 29, 2017 at 06:23:43PM +0100, Ben Hutchings wrote: > On Mon, 2017-06-19 at 23:20 +0800, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Yu Zhao > > > > commit ef70762948dde012146926720b70e79736336764 upstream. > > > > I saw need_resched() warnings when swapping on large swapfile (TBs) > > because continuously allocating many pages in swap_cgroup_prepare() took > > too long. > > > > We already cond_resched when freeing page in swap_cgroup_swapoff(). Do > > the same for the page allocation. > [...] > > That seems to imply that this should also go into stable branches: > > commit 460bcec84e11c75122ace5976214abbc596eb91b > Author: David Rientjes > Date: Fri Apr 7 16:05:00 2017 -0700 > > mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() > Looks like it to me, thanks, now queued up. greg k-h