From mboxrd@z Thu Jan 1 00:00:00 1970 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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 64823C63793 for ; Thu, 22 Jul 2021 12:37:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0AD7A6109D for ; Thu, 22 Jul 2021 12:37:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AD7A6109D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9B4166B0033; Thu, 22 Jul 2021 08:37:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9646D6B005D; Thu, 22 Jul 2021 08:37:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 852F06B006C; Thu, 22 Jul 2021 08:37:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id 6BD606B0033 for ; Thu, 22 Jul 2021 08:37:20 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0CD561DADF for ; Thu, 22 Jul 2021 12:37:20 +0000 (UTC) X-FDA: 78390174240.05.07822CD Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf05.hostedemail.com (Postfix) with ESMTP id 57DC15016297 for ; Thu, 22 Jul 2021 12:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=NG4N/2H3vvAjRHdDWUczi40Y7/Fx7mV5GVuGOtkatQQ=; b=R0sVlJzxfmtaJ6WvW3j1P24Mck t79mECEBGb+nkFlOvxz64p03TMuphOOxmn0+I8v1F1lRm+D/cvj3h/TA3u6WQWtpycj+xWBmNl9nf s/ENwBtucNIFCdCkD2oLdVmzoypMgwjaur21zn9S/SI92T1qohIzy4OGR5WamZAF6p0SJAD3loC2N 99fCSQrJSH9Z8qV5tGB8/5FMZVFCVDRPmHwX1qge2T6Wv4i6xUoorsF2F804YyXkwklybkJJitkgl NCQ6mxnpuTyUyw8tC8v/33aSpL3cX2VNztqLZNefTLOLH674JYKxAr5PoNIuoh0tn8hiohSCet+1h RrZEAfCg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Xvm-00AFjQ-FL; Thu, 22 Jul 2021 12:36:09 +0000 Date: Thu, 22 Jul 2021 13:36:02 +0100 From: Matthew Wilcox To: Zhouyi Zhou Cc: Chris Clayton , Oleksandr Natalenko , Miaohe Lin , Boqun Feng , paulmck@kernel.org, linux-kernel , stable@vger.kernel.org, Chris Rankin , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu , Andrew Morton , Linux-MM , "Huang, Ying" , Greg KH Subject: Re: linux-5.13.2: warning from kernel/rcu/tree_plugin.h:359 Message-ID: References: <5812280.fcLxn8YiTP@natalenko.name> <2237123.PRLUojbHBq@natalenko.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=R0sVlJzx; spf=none (imf05.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspamd-Server: rspam02 X-Stat-Signature: ykc7ky49m7jd3nnfb8y5mwan63tbjq8y X-Rspamd-Queue-Id: 57DC15016297 X-HE-Tag: 1626957439-309175 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jul 22, 2021 at 04:57:57PM +0800, Zhouyi Zhou wrote: > Thanks for reviewing, > > What I have deduced from the dmesg is: > In function do_swap_page, > after invoking > 3385 si = get_swap_device(entry); /* rcu_read_lock */ > and before > 3561 out: > 3562 if (si) > 3563 put_swap_device(si); > The thread got scheduled out in > 3454 locked = lock_page_or_retry(page, vma->vm_mm, vmf->flags); > > I am only familiar with Linux RCU subsystem, hope mm people can solve our > confusions. I don't understamd why you're still talking. The problem is understood. You need to revert the unnecessary backport of 2799e77529c2 and 2efa33fc7f6e