Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4829094ybv; Wed, 26 Feb 2020 03:50:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzM1tSrXRILkyXJfp6PZlIMa+uaz6p2sHBHRVAyOpY3b2GSV00U+GCrRWJfEqPOqHFnbV2u X-Received: by 2002:aca:ed94:: with SMTP id l142mr2817006oih.58.1582717823535; Wed, 26 Feb 2020 03:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582717823; cv=none; d=google.com; s=arc-20160816; b=FPC16AfhFIB+UL9gNz66pT4GHUTbT4tBETdG8CvzEqwtdo3AkGaX+QS+TE+Jnx3KW9 1n/CiYBy/0S84HnlbkyArxVXbHZExf3FMykzcxuDG+KPUSrZVD4Np4MItGB6N4Ub5wx9 P9lCiwkJ85PjT5AsICKUMxaNiHLul2d8/+WbEs2b+L7ZnNW96aCDGfzdF6M594xJ+X9U z85/03OheB8YNzOwtb2IBSf17fjfjmy/zN1vt0IwR5jZ/83C5Q8PgTz2PTnXPs8u2y9e hA8QM13ElNlxZaQjKRK17QAlTkJv1QEry1XGUNb1t0WILKrJOs1H/FAlvPu5uTNXwkN+ YnhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=1Nj3WLo9cRZxIPEHv9qflBuNtujnV4srBAYaoC6re2w=; b=BXX1GAvF75rRJFp8CLpyiZY1K2edjJViTfjR/D+wOZiagd6+4cuYFz8wfmqO58z8+P yvjUKMQzfv1R++oyCAVUlFHyktJqWVwPMJFHs8cqdb1FkKY4nPfjF5JvLalzv/RWOJBX brwM1JUtXa8+AzlQfxbpKEiuQrHM/riULeshW8xhWzr1meKUPseF/LCLoQWgG3T0jG7B vbNAE0eKKt6oPMmWBKqn4YC4C3dAdDleVfOzajHdJUUlt8OANrOBr5FF76GspVMJmt8s KrLClsVmQfsydK5WJ2gy8ZRLLPt7ffgsuu/CRd5NJ7zCote9DAJBvT8o41ZLKELVZLKc +c5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=RSDI340P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si987753oie.240.2020.02.26.03.50.11; Wed, 26 Feb 2020 03:50:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=RSDI340P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728208AbgBZLuE (ORCPT + 99 others); Wed, 26 Feb 2020 06:50:04 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44556 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgBZLuE (ORCPT ); Wed, 26 Feb 2020 06:50:04 -0500 Received: by mail-qt1-f193.google.com with SMTP id j23so1979208qtr.11 for ; Wed, 26 Feb 2020 03:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=1Nj3WLo9cRZxIPEHv9qflBuNtujnV4srBAYaoC6re2w=; b=RSDI340PiBSVFYUkud1M9U3Lq657NRydFYs10bE04Em1x6PIG4aT2xeeWPZAu73fnB 0NhbmR0qdEntI8a1Uo/YEsjcfi3wGUzdDrrOE4QQO2BksjlIA5H7qy3fYwHsULvhpcWn /DoS9rrLodMtGsZ8m7Nf4Zl6tRZoewkcWowjJOY5yhaW+uQg8F/GVpOPjmUHCxPaJnI6 k0AXbwsdEDg+BVlvO2pw1iEltPtkAV0HKQcJm8j2eNDgAjKK8oDJqm8HRnz7ntW2kayv xR9zNiIy3yFLn4PSQnxr9cqIUq0ZvZXeaAgL9ex1bspckmygM8bJr6AffKTm+9AZT2Cr wcpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=1Nj3WLo9cRZxIPEHv9qflBuNtujnV4srBAYaoC6re2w=; b=WfzvO4+l/ePcBoTX/PEXECW0Bv0vC0NPri6V9zpI9gmvMBY12GWfKLdoB6Vkj2LRx0 ApIYBtp+/aluSw6vzDBZHVqR5GXwsqB+s9F9sPvgMrO83CIALpzrVKeoVRjsfvCwh9eO ufnRHqDfb1N+rQq/DA9toH/+1M+OIBpnacTYTHPDj4eRTJyl+AorLMvMeL06v7uEetb0 AUBFOt1wiZmkpXk14HJ+WI1ixSGx6HeQG6ry1/dCLz0CY+06/BpLZapxitFCjiu1IeUO QTtsf9abIN7Gy82aaHJRAWtzqcqhBjJDxy6+OKnqP+KATkRri4t9bUB28DdL6cP6gdBB mvog== X-Gm-Message-State: APjAAAUmXNJdSudc4ID1Pchb3UGoluLOSDG5VUkDAe+r1GPP346hjdnX WUE1XRYMN86o8OGwsiEvMypkCQ== X-Received: by 2002:ac8:6999:: with SMTP id o25mr4093185qtq.342.1582717803449; Wed, 26 Feb 2020 03:50:03 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id x24sm977024qkn.48.2020.02.26.03.50.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Feb 2020 03:50:02 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2] mm/vmscan: fix data races at kswapd_classzone_idx Date: Wed, 26 Feb 2020 06:50:01 -0500 Message-Id: <8C6CE0C4-7B15-41D5-A1B2-F48F6241200F@lca.pw> References: <20200226040612.GW24185@bombadil.infradead.org> Cc: akpm@linux-foundation.org, elver@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <20200226040612.GW24185@bombadil.infradead.org> To: Matthew Wilcox X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 25, 2020, at 11:06 PM, Matthew Wilcox wrote: >=20 > I don't understand why the usages of kswapd_classzone_idx in kswapd() and > kswapd_try_to_sleep() don't need changing too? kswapd_classzone_idx() > looks safe to me, but I'm prone to missing stupid things that compilers > are allowed to do. I am not sure. Although it looks possible on paper, I am wondering why KCSAN= did not trigger it yet which seems rather common. I did stress testing thos= e areas with KCSAN for a few months now, but it might just be that I missed t= he report at the first place. I=E2=80=99ll keep running some testing to confirm it, but until that happens= or someone else could confirm it could happen, I=E2=80=99ll leave it out fo= r this version. We can always submit an incremental patch later if necessary= .=