Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp282556ybs; Tue, 26 May 2020 09:05:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSC0fxDn8pO7VyMub2umsBjMTuez2OM8qNipQ2ht9YJT8JPJmVweZgAAlTZbodHfeoFalM X-Received: by 2002:a17:906:1ed3:: with SMTP id m19mr1789420ejj.429.1590509107793; Tue, 26 May 2020 09:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590509107; cv=none; d=google.com; s=arc-20160816; b=X3o28XFgMFqWEn5WdEaRb1K/Ln36nOrc2ZbKqmbhAS7QXbD3wxgZGQjw8x5zr5nMx0 a6JjAkQ798vxz3OHRZVWz49DTd9g8QBCYeFcF/o+UT9s41fnZ9D2lbdjcPghY5r4RJMC O+Oo1Ut98ypmcj9YK3ChWgrss2eIh3N61Cvl0hW0OnayunnhAIqrJYghFovF/2Ue8kxq I9Glq2RfrrSfymw9+FiYmKPIO5bU++pkqqCMOvn7Wt0JKcRNLaAD3bAI1/9Y3v+mjnb8 n3JV60sVDgWGgJvztXBRgNhmGcRgZ34Oly6o8KXs83PEDRz+k6+rUm1jGwduOMp27BMh 1I0g== 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=RsZ3nQfGjW40v4ckRRp9241TQQ4YCE7GdfX8IPCvDyE=; b=A7QQJUsR03eHwZ6VPYFyYEdKeIM/E8/r5+/FBM1f46jqj10mig6qejrpoM2G2+m39D EvH3RLLbxryCZlO3jQL439reqjwbInJwqhmqlclvwnl/lQXP2wf6KDbATs9zMqWwQFfI yP1dLXIOdh+Y2/LISi7Fr+7KSs4bUm54VJ42Ibytrofi/6it9Y+1Kn0kIbcHhKI/GuLC +HKC4UYZURZwc+kAEqofuGlDN7jsyhf4/rtpy4X5OQPmBG+MUPgEsSOOgLKcoQGdtAX4 mV6XlO4DsW25wgnSFIbA4td5iUmSdS3vYaUd8xtBeKlNckpdj7YvZl3kgQ8OR+e4WGg/ Fknw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=AZvUVlJq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id za5si87944ejb.698.2020.05.26.09.04.41; Tue, 26 May 2020 09:05:07 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=AZvUVlJq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729965AbgEZQCG (ORCPT + 99 others); Tue, 26 May 2020 12:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727862AbgEZQCF (ORCPT ); Tue, 26 May 2020 12:02:05 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C895C03E96D for ; Tue, 26 May 2020 09:02:05 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id x13so9668226qvr.2 for ; Tue, 26 May 2020 09:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RsZ3nQfGjW40v4ckRRp9241TQQ4YCE7GdfX8IPCvDyE=; b=AZvUVlJqEqbAPtDWEcV8xLSKNrSwwqm27o4j1nKpKyNIvP//3xF9TBUmSqeioWu+ox GgUtzLzzkJzvIbm87q0XvHko4QXlFaYxgKgfCZ53z4iBOhQnGqODmLbw626evo9klZtu c7PoTVabRQKKhf5nWGB1E7GcRx+eMZZcPz81NaE8FAVR20U3lqHBNcCpwjcPFS5ErJ+8 6XZEtI7fjLtnGewlpV2uHO14tWYN0wa4KnFXX+ibs43sGR8LaHz0R1Bm+9wCm93w5gpq u4epjiy5ZZpl+TZKm6frdFVstFQ04kgG6wE7yggabAskwiesK6ye0FxlnjiklEHIwV5l thfw== 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=RsZ3nQfGjW40v4ckRRp9241TQQ4YCE7GdfX8IPCvDyE=; b=gXpwbrVPNr4jirEpv3g0nO+gVXWQUErh2r/p6eoUUE5soNrVtEEHcDMYfe9z45REo2 guNN9tbNzw5I6T+ieBlYdTnVWT4ogFMMghdYoWwkkaSrUUQ9JQfyjUG35fddSFWF/oFK NupIo8L/DIf9MPWQncgjDA2EomNJ0gh18FA9o3i/tQgZI4UBWb+mBjvRRicBu+hnmoP3 5ZPUnQgiNHGS+LnpERV1+T/qumupYnborcBTerbP4aT9b7BiqAoXVBm+g37uW6+bMwEv ceAmTi7Fwtes0Q0hmkH0Nv1J3mP23DajANOppXu3NAE2n3p/M7lT5mTTMBHp5GwwswMk xYVA== X-Gm-Message-State: AOAM531Pk5ZLZ6utjzWK0CbEqcRb+z21FYR9hHxfrSuv2B+84OAz+adA cDWF0fTB1aBWW3YUE+k8JWxyoA== X-Received: by 2002:a0c:b354:: with SMTP id a20mr20923201qvf.205.1590508924821; Tue, 26 May 2020 09:02:04 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:8152]) by smtp.gmail.com with ESMTPSA id q34sm58103qtd.89.2020.05.26.09.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 09:02:04 -0700 (PDT) Date: Tue, 26 May 2020 12:01:40 -0400 From: Johannes Weiner To: Hugh Dickins Cc: Andrew Morton , Song Liu , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm,thp: stop leaking unreleased file pages Message-ID: <20200526160140.GC850116@cmpxchg.org> 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 Sat, May 23, 2020 at 06:50:15PM -0700, Hugh Dickins wrote: > When collapse_file() calls try_to_release_page(), it has already > isolated the page: so if releasing buffers happens to fail (as it > sometimes does), remember to putback_lru_page(): otherwise that page is > left unreclaimable and unfreeable, and the file extent uncollapsible. Oof, I could imagine that was painful to debug (unless you already suspected file THP due to a targeted test or similar). Kudos. > Signed-off-by: Hugh Dickins > Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") > Cc: stable@vger.kernel.org # v5.4+ Acked-by: Johannes Weiner