Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD459C43387 for ; Tue, 15 Jan 2019 19:57:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F5D320656 for ; Tue, 15 Jan 2019 19:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547582256; bh=fvdGI6eCtiFImhzIvB3TafAGUUFTDQwC3KnaGfbqvqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=UX5hpaFE5UJ9fn9lnMLWGrNLPeL8Rzxf58tW3JFzimCxNnXdFbTyUzRHjZvaDTl/+ vVUgO/sRKoC1KxQDERb33y4u/ZzZwTGteOLZ/8JR/G0xvD4+G8+28hb7SoOJSkMraw hUs21LA7Qjy5C73CeRMzWRYoMMGyDDEg+LZnpzFU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389517AbfAOT5g (ORCPT ); Tue, 15 Jan 2019 14:57:36 -0500 Received: from mx2.suse.de ([195.135.220.15]:47810 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389473AbfAOT5f (ORCPT ); Tue, 15 Jan 2019 14:57:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 602DCACE3; Tue, 15 Jan 2019 19:57:34 +0000 (UTC) Date: Tue, 15 Jan 2019 20:57:31 +0100 From: Michal Hocko To: Greg KH Cc: akpm@linux-foundation.org, bo.liu@linux.alibaba.com, david@fromorbit.com, hannes@cmpxchg.org, jack@suse.cz, kirill.shutemov@linux.intel.com, shakeelb@google.com, stable@vger.kernel.org, torvalds@linux-foundation.org, tytso@mit.edu, vdavydov.dev@gmail.com Subject: Re: FAILED: patch "[PATCH] mm, memcg: fix reclaim deadlock with writeback" failed to apply to 4.4-stable tree Message-ID: <20190115195731.GC24149@dhcp22.suse.cz> References: <154747783690179@kroah.com> <20190115153444.GD7283@dhcp22.suse.cz> <20190115155131.GA17724@kroah.com> <20190115174036.GA24149@dhcp22.suse.cz> <20190115180918.GC23873@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190115180918.GC23873@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue 15-01-19 19:09:18, Greg KH wrote: > On Tue, Jan 15, 2019 at 06:40:36PM +0100, Michal Hocko wrote: > > On Tue 15-01-19 16:51:31, Greg KH wrote: > > > On Tue, Jan 15, 2019 at 04:34:44PM +0100, Michal Hocko wrote: > > > > I do not see a straightforward backport of this patch without pulling > > > > more changes in. Do we have anybody to actually hit the issue on those > > > > older kernels? While the issue is possible in principle I do not > > > > remember anybody complaining. > > > > > > If no one is complaining, that's fine, you just got this message because > > > you put this in the commit: > > > > > > > > Fixes: c3b94f44fcb0 ("memcg: further prevent OOM with too many dirty pages") > > > > > > Which means any kernel newer than 4.2 (and some older stable releases) > > > has the issue that this patch is trying to fix. If it doesn't need to > > > be backported that far, wonderful! > > > > After a second thought, we are not really affected all the way down to > > c3b94f44fcb0. We do account page tables to memcgs only since > > 3e79ec7ddc33 ("arch: x86: charge page tables to kmemcg") 4.8+. Without > > that there is no realy memcg reclaim and thus not wait_on_page_writeback. > > > > So my Fixes is a bit misleading. Sorry about that. > > Not a problem, thanks for looking into it. As you say 4.8+, this didn't > apply to 4.9 either, so do I need to look into doing a manual backport > there? Backporting there should be much more easier because we already have prealloc stuff since 4.8. I will try to find some time to look into this tomorrow but I am leaving for few days off so I cannot promise anything. -- Michal Hocko SUSE Labs