Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp563149pxb; Sat, 10 Apr 2021 11:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOFY4tptouG/nC8CNZdIF5uI+xHwiKVvhohdrr9/ZUkuaSQtGdvn4Ct5/DoEa+yac0C0T2 X-Received: by 2002:a17:906:1fd7:: with SMTP id e23mr10829652ejt.528.1618079030506; Sat, 10 Apr 2021 11:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618079030; cv=none; d=google.com; s=arc-20160816; b=o7M/8mF9gNhQri+OlXiJ8RxNW/eqyuEMRrkD/AE4M6B/RMFKQSJS/00Ldbr0h1Telc HN2vfzyREp7hmTERqpf1/+lhT485xKBcbJ+cOPpFOgpPYhWJtWkzov/2MN9G3Qi0JB/4 xvFbHYNv2X5cReGR8W8DL2kqZh998QAYrenAv57CD4dBpbQVNO/WAg+5OD6THsLe1pcB SZdUeN7HaO3GMNgrzWohOc+SGc3SFQVnBXMaCKOIdQ1D5LZwKqv5UL6PiVhAt7sFuVQX 8FyEC6rgh9nlaijFx45q5ZxXZSxIy7f/VfEzkJ8O14yp0v10wK4DMKTKQLkbOgWUvb6m pvFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=Byz/Sc22eLv5OrE3COYJ5OikDlNUAwwd8T2iK8Gi2u4=; b=QGeQv1c7lZnnBht274hk8K7fh2vnE2MmWTz09nkCpFdfypZS0tEK83JXy9i0ieKlW/ vOGnma28N5l9uH+qaPn3fQ6GaRf9NET6C3Xt/tTmYFMcZN95xkeEXvo5aqTtToWRqLhJ 7kS6uYhh2qttgV/TXR3mVJvIXs4hzR4GJX56M3okcbPFjg+ingqwwHZWv/IkjKb+kMpE cz6GCefl8htrG0Uvyycr6CQSbwC8befEHy0qDyi8zCmxqRFu0R70e4HuDZyjkcfysR8g BYh16mpo1byvQOgUlPUhLySYUbNg5KjLDHtpztOj/voIw1LYCYs9dDDMN0dXEFfIhlIU 7Bjg== ARC-Authentication-Results: i=1; mx.google.com; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu20si4610819edb.364.2021.04.10.11.23.27; Sat, 10 Apr 2021 11:23:50 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234831AbhDJSWy (ORCPT + 99 others); Sat, 10 Apr 2021 14:22:54 -0400 Received: from mail-io1-f49.google.com ([209.85.166.49]:46702 "EHLO mail-io1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234392AbhDJSWy (ORCPT ); Sat, 10 Apr 2021 14:22:54 -0400 Received: by mail-io1-f49.google.com with SMTP id j26so9239345iog.13 for ; Sat, 10 Apr 2021 11:22:37 -0700 (PDT) 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:mime-version :content-disposition; bh=Byz/Sc22eLv5OrE3COYJ5OikDlNUAwwd8T2iK8Gi2u4=; b=SWY1ti2s5TcmRbvh2WgfUQQsofC+pPUq6pj+xmKh5uCU6QOgtdeJIUr5BGBxWpoKfI GmPCJziwjLjGdSz0Okzxp+D1qoBoEkntaJpkOa1ZfzXZFyxnAUrUvQ3yqTRcnLifPXIC 4UUwy/lgINhXu33vGGEe9MQuAjmVoqHvqPJcYQitx+GQXPxG3L7O5lIFjJRkwZheBPgw rPXK986TINZbxtr5An599x9HBN2dKuDeqw09UL+l2AQAHeQcnMKoFUh7x9UBvv9otF4c VDpsNDHGviwVA2C3wwBeUE/6ouyy6qZoUqgWZ/lw912zMmj23OkhcwCw/lTgVP7LYIRS UiCQ== X-Gm-Message-State: AOAM53366c2GOMqYAt3SaEU72oDoHiOtMb5Mo2Yf1hSIeMhZ2mS1Bh6R NVm2HqmwZLIFHCxvomk3/HU= X-Received: by 2002:a05:6602:179e:: with SMTP id y30mr2649047iox.130.1618078957570; Sat, 10 Apr 2021 11:22:37 -0700 (PDT) Received: from google.com (243.199.238.35.bc.googleusercontent.com. [35.238.199.243]) by smtp.gmail.com with ESMTPSA id o6sm2977907ioa.21.2021.04.10.11.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 11:22:37 -0700 (PDT) Date: Sat, 10 Apr 2021 18:22:35 +0000 From: Dennis Zhou To: Linus Torvalds Cc: Tejun Heo , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu changes for v5.12-rc7 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, This pull request contains a fix for sporadically failing atomic percpu allocations. I only caught it recently while I was reviewing a new series [1] and simultaneously saw reports by btrfs in xfstests [2] and [3]. In v5.9, memcg accounting was extended to percpu done by adding a second type of chunk. I missed an interaction with the free page float count used to ensure we can support atomic allocations. If 1 type of chunk has no free pages, but the other has enough to satisfy the free page float requirement, we will not repopulate the free pages for the former type of chunk. This led to sporadically failing atomic allocations. [1] https://lore.kernel.org/linux-mm/20210324190626.564297-1-guro@fb.com/ [2] https://lore.kernel.org/linux-mm/20210401185158.3275.409509F4@e16-tech.com/ [3] https://lore.kernel.org/linux-mm/CAL3q7H5RNBjCi708GH7jnczAOe0BLnacT9C+OBgA-Dx9jhB6SQ@mail.gmail.com/ Thanks, Dennis The following changes since commit e49d033bddf5b565044e2abe4241353959bc9120: Linux 5.12-rc6 (2021-04-04 14:15:36 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.12-fixes for you to fetch changes up to 0760fa3d8f7fceeea508b98899f1c826e10ffe78: percpu: make pcpu_nr_empty_pop_pages per chunk type (2021-04-09 13:58:38 +0000) ---------------------------------------------------------------- Roman Gushchin (1): percpu: make pcpu_nr_empty_pop_pages per chunk type mm/percpu-internal.h | 2 +- mm/percpu-stats.c | 9 +++++++-- mm/percpu.c | 14 +++++++------- 3 files changed, 15 insertions(+), 10 deletions(-)