Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp794413ybk; Wed, 20 May 2020 12:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAXiP/uAhdNIFepnmc3Of3vmdHf/0SHeC0J9T2332k3a4cIophoKgT2lfL6xRwx5I/DYDO X-Received: by 2002:a50:99de:: with SMTP id n30mr4754801edb.248.1590001665952; Wed, 20 May 2020 12:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590001665; cv=none; d=google.com; s=arc-20160816; b=qoVjQ87SlMVFtyLcREZRrt299YDlCS7FiPS76moxatMP76TdEHk2nn2qRKsuPisR82 /awGINVmN2gDwPV88HqsEnbqo/xBT7l85dU7d5SI4Jk6WzomrswO+WeyQKeY+c7fRgls BDVlBL4yAaIOhTNwveUJz+O/8Z7DibhdlQ31rifoTohpaYufDox6y27o7np657KeshsN iTtSmmLGP2+4oiEdmj8c0OxZAxtP2UcOrm9agUhIfenUnW0b3zhBPzROGzjbMAxk8t2S CqT49DhGiCA+fBEjviuXMud2oH2VC9zFp9YFD/LS5vvkgrkZ3YkaAHoXu7VAu9JBGUoZ IMaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=B9+fSKP0z6kMIaGF+78kIniE7F4EO/EazsTHVPcfTDo=; b=M6YUhONB7pErr5RyVNykLDwW2hpVh2LVzVFX2YoKZO5i/MrpH3Orz8wGZm4lYMfwHG cYdGliO+MtWCa72k0lJbuxHkKLCx1Yx1ErMhM0v6N3KJnPLW9OOf2C6iEFvjFbXp4dln 2P8ZdG3TTe0BGlN/5N2zDT1r/paOhscDCCKf+YC1TwZ/ybYO7eIWq+f0qX8bBAF2a/2I X7gicPWO7qb41dLknJ+/g1sCrS64+5UodDBklNkU6DSmKhr+9uj43LsqNL1OONPi0wWt +XpuVKP4wYsgj9xnsq7P0p6SbfLa0HoTrpsmedcn+KGrIVMEbyJf5GzhOv2cjI3fWQQO gZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=WCwxFtPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si2220013ejr.100.2020.05.20.12.07.21; Wed, 20 May 2020 12:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=WCwxFtPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgETTGB (ORCPT + 99 others); Wed, 20 May 2020 15:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgETTGA (ORCPT ); Wed, 20 May 2020 15:06:00 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7767EC061A0E for ; Wed, 20 May 2020 12:06:00 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id d7so3440603qtn.11 for ; Wed, 20 May 2020 12:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=B9+fSKP0z6kMIaGF+78kIniE7F4EO/EazsTHVPcfTDo=; b=WCwxFtPd93lX5/INoql/D9+P8RcSW7fw5beK5vPk6ptSAutO+LLRfER/Li076COnIy lu/zA9qDPWjbyug0UIyw4mMQeixprvXth5P/EtI5AkIfhsMuxSLisIe/QrdbfNbZFrWM 8GSsyxRhzhcRuqGDcZlxIbzr/beMFanlycBBBGt7D1NGjio6GMtlUhnwVhBeqjvMWoDM lnvb8JDxrjn6F+dYN03sCqTb4ra7eT2mIUjpP5RnYV8U05GxhMKb/UqwVRbrHrVxVJLi uPYMGPRevLMjJ2vPCFkLtuyo16AhMjPrmay/yztRKeK+ApmdPkuRgqlw6m2WvQ7/twkc r/kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=B9+fSKP0z6kMIaGF+78kIniE7F4EO/EazsTHVPcfTDo=; b=LjsW6f+JVoqOS8+XZis3JeB0IA+sk0RVQ2H/anpxUbYqE/ACqlOulg8OUeI1AtJ16J Gl3Ur77gS3GtUD/SyjkCWR94PJ5ToO4R4mEJAZjanqHhT0sQ81h4CER3qF4+qPct1FWb H1C1HuHgy3kBhqP1hKEioRDrjJLTw9SYG+uHkY0yI6JUGiAqB30X41X9bgDB5Upp2kqt nICO14v6znbyRZfPfTIII050xQ2Gd3LFx4P5EqCSVI8PygdCOqXxX3KeWV4Y3JtXd6N4 qZD8++l+xnEElZUsGIKkNcf6er2Tdr0duZVvgCSKrzBBstHkvETToj3Uja4QaYiAw2U0 3aaA== X-Gm-Message-State: AOAM5311Y1+b9y2AUJOYF7qOCF4uWKsHoZZUEkdplycec4DMg8LT415F Nm94R8kWhukjuWtInXfcRK/5pA== X-Received: by 2002:ac8:3ac4:: with SMTP id x62mr7227139qte.283.1590001559595; Wed, 20 May 2020 12:05:59 -0700 (PDT) Received: from Qians-MacBook-Air.local (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id c63sm2695364qkf.131.2020.05.20.12.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 12:05:58 -0700 (PDT) Date: Wed, 20 May 2020 15:05:56 -0400 From: Qian Cai To: Vitaly Wool Cc: Michal Hocko , David Hildenbrand , Linux-MM , LKML , Minchan Kim , Seth Jennings , Dan Streetman Subject: Re: zswap z3fold + memory offline = infinite loop Message-ID: <20200520190556.GB4894@Qians-MacBook-Air.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 10:23:38AM +0200, Vitaly Wool wrote: > On Tue, May 19, 2020 at 5:50 AM Qian Cai wrote: > > > > > > > > > Removing that check in ->isolate() is not a big deal, but ->migratepage() shall not allow actual migration anyway if there are mapped objects. > > > > Is that worse than an endless loop here? > > Well, let's figure if there really has to be an endless loop. Would > you mind retesting with > https://marc.info/?l=linux-mm&m=158996286816704&w=2? The patch does not help. Running the reproducer the second time would still trigger the looping.