Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3617880pxv; Mon, 19 Jul 2021 04:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1vUc2NID5sg6pvKzLY/Vsa85S/nlnA+GQf25aHdmaenl9z1UQ2TFIxi1IPGzXaEwMjcL5 X-Received: by 2002:a17:906:5509:: with SMTP id r9mr27435115ejp.74.1626695509426; Mon, 19 Jul 2021 04:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626695509; cv=none; d=google.com; s=arc-20160816; b=dG4OtDYrw0xAgrIRntVze3iZfo92YVYYH3dzpScFnoDLxjzn6oLnWTLWyA6tcsu2Id iCFKTqucjW7G0ynjJtCWGVFqqDUp+oZnDQ4AliN/XakKBb2DWGXmzz84Sy7lP3G9svIr RfWuXLCaGRKoiehSvN+I5mICCnATb7tM5Je3ylmXyFrUgiVz83GO2nWZhEXD/6YaTOkn QXTi7oR5D4ew+Se4rVUcx8tqsVwN/K2V8V7aP283EzbaSmelfYLWjQ3EOOHcKhzvSd5T wpyVldGsDAh4L9omV5OA6JdkbeexvFCHPUwYG/4fso9c1QRox84IqZf9gbOyt1Pzef9p +X9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tErZPwoQDiSZXIOCX7fcwQbFWgqlxUYsKAXohdcUZWU=; b=dXiG0//qKa3Xe7R5EmcjbhabiK5uoaOnZTU5kRzwYJZ0ycWiKMyiPTbWP6tUGHSN62 UpIMbAH3c8d1NgzHRckln3IynAhAO3PWy3+unyrtBsdy3eiEfIe3Y8jOInSRD9I/UQ9H 3AfEFzSylFwEIsumWqTE28OUrYzGwnWqTSDVMvZQQrEcVmaMCUoogIgPxQHkr7L+Tjrc kd758xH1S+bXxu8G8WoF4CG3JIs5HDP6UlzgqApGPKcm/tsIc+L/SIMa7LUKX2Yzpt/G EIalcPlDpdaKyF1uIi/mJAFVdR263ZJIw0+kH4z/qoDGEOnXTx2Z6Wn98DTYWU80UkB7 WvGQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si21064066ejo.162.2021.07.19.04.51.26; Mon, 19 Jul 2021 04:51:49 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236314AbhGSLJa (ORCPT + 99 others); Mon, 19 Jul 2021 07:09:30 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:11344 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbhGSLJa (ORCPT ); Mon, 19 Jul 2021 07:09:30 -0400 Received: from dggeme703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4GT0Qk0cnTz7tG1; Mon, 19 Jul 2021 19:45:34 +0800 (CST) Received: from [10.174.177.180] (10.174.177.180) by dggeme703-chm.china.huawei.com (10.1.199.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 19 Jul 2021 19:50:07 +0800 Subject: Re: linux-5.13.2: warning from kernel/rcu/tree_plugin.h:359 To: Matthew Wilcox CC: Boqun Feng , Zhouyi Zhou , , Oleksandr Natalenko , linux-kernel , , Chris Clayton , Chris Rankin , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu , Andrew Morton , Linux-MM , "Huang, Ying" , References: <2245518.LNIG0phfVR@natalenko.name> <6698965.kvI7vG0SvZ@natalenko.name> <20210718215914.GQ4397@paulmck-ThinkPad-P17-Gen-1> <20210719015313.GS4397@paulmck-ThinkPad-P17-Gen-1> <08803f78-3e99-6b3f-e809-5828fe47cf06@huawei.com> From: Miaohe Lin Message-ID: <8058e175-cec5-c243-6499-c1cd4e3c8605@huawei.com> Date: Mon, 19 Jul 2021 19:50:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.180] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggeme703-chm.china.huawei.com (10.1.199.99) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/7/19 19:22, Matthew Wilcox wrote: > On Mon, Jul 19, 2021 at 07:12:58PM +0800, Miaohe Lin wrote: >> When in the commit 2799e77529c2a, we're using the percpu_ref to serialize against >> concurrent swapoff, i.e. there's percpu_ref inside get_swap_device() instead of >> rcu_read_lock(). Please see commit 63d8620ecf93 ("mm/swapfile: use percpu_ref to >> serialize against concurrent swapoff") for detail. > > Oh, so this is a backport problem. 2799e77529c2 was backported without > its prerequisite 63d8620ecf93. Greg, probably best to just drop Yes, they're posted as a patch set: https://lkml.kernel.org/r/20210426123316.806267-1-linmiaohe@huawei.com > 2799e77529c2 from all stable trees; the race described is not very > important (swapoff vs reading a page back from that swap device). > . > The swapoff races with reading a page back from that swap device should be really uncommon as most users only do swapoff when the system is going to shutdown. Sorry for the trouble!