Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2786631rwd; Fri, 2 Jun 2023 14:58:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y48A8ea9hLtYg4h7OzBLcCmTnGmF85pXfnoTgoAuT2pi7Xl9EutJziMgrUH0u9xKYzkuD X-Received: by 2002:a17:90a:1951:b0:256:8fd7:1f18 with SMTP id 17-20020a17090a195100b002568fd71f18mr1142366pjh.15.1685743093108; Fri, 02 Jun 2023 14:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685743093; cv=none; d=google.com; s=arc-20160816; b=bxpyEflE4aa7UckZ2l59g+0bkH+f985+9McngWaCh7Zu3C0dI7EhiposCGl0KMtnWM MgxmPhsBBHT6oG84n4Bj6x2m/lEvv7+KvHyOi1m21+0HNa80C1qibXMkYn6SJ+gmnAhz g1EfnEUHplkuNV/WopfZvaSDoRXNV86JmDnszlM22DEU5Co0YzpCDAT4k6XpfQ+2BNi5 Ldo5bjC0TIOnu0V2LXGok4Q7Ay11okvxxyPts79+wveRGeh38Bp7pQ1LVAVVsas8VokR j1lmLWz1FSZxIt3+yoA2BRMoLRd3iZthHJS/GzbWf0WVovYLtcyUh0+2cFa1T2N99AnY CgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C6BGcfOx79dLQphrKhpq3MeyMSz2FL7xfFc/MTtnYlg=; b=BETMLSIQMqRfCtGyeaSUaZlm8OwqKC3R4BCJFSpb8OC+O1f8h/6cegsI5cey7LjR5a ZaYFFu2+GnA4E6hUt0StgEz/zw2704ss/wKv1za68eGy5NtCtmDteVRnFhJhNj9AYbBd LLPj4ugK6Fb9fSo1273JkvVosjFMm3vADSRm6nLiW+ENssPNJdNcvYOCKBOjtpscaKC6 IQZ3JGZa+8pQSAmEgwdEVihSlWrlqj3J4VKxydzg0msNBDaQ105//z5p/8cLzIDbGAB9 jfHi6k5+8XMrDt1D2923CX5ZuAQIZoYV0Mvdwp0DLxbfOr3Emlt0ewn2euZNfA4LnBBW ySjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T52eh37f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a17090ac29600b0024dec043858si1667486pjt.74.2023.06.02.14.58.01; Fri, 02 Jun 2023 14:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T52eh37f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236305AbjFBVnx (ORCPT + 99 others); Fri, 2 Jun 2023 17:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235360AbjFBVnw (ORCPT ); Fri, 2 Jun 2023 17:43:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF23D1B3 for ; Fri, 2 Jun 2023 14:43:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 28DA960EA8 for ; Fri, 2 Jun 2023 21:43:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 753E0C433D2; Fri, 2 Jun 2023 21:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685742230; bh=dqPx4FOL2k0vRoOh1SeNQzO8jYCMtTwE1Ahz/eh3gWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T52eh37fLsuybop6dfq6Nc8yKoSXXOHxovVdxoFd9k8e2VfWvAUB4A4hiv7Jv8CNe zH+LUIgfbwxbQgIkLmqV3x2P4RGiSSUUmzQisCmroRZAMYxMVt2MpfLkIAJbC7BotO 9rVVBlFEjzaaszmESNpP7VuA7nbl/8vajzWsWwgDVioznI2T69IqqO6PwP6mWK4iOs LZaFc1VbjNFI8IS7mYO6ya8ylT7Igt2vFCKAEdBKweypt0OW5/ZZ2LNa8GVvXej30K fZ5naFmS+rOfoytDwnjxUDA1Klx2325hWNtnB2nHoRVTy+raNQe/0q+qmrC7tRoVdV 79L1lsAnA0wUQ== From: SeongJae Park To: SeongJae Park Cc: Ryan Roberts , Yu Zhao , Andrew Morton , Christoph Hellwig , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Lorenzo Stoakes , Uladzislau Rezki , Zi Yan , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, damon@lists.linux.dev Subject: Re: [PATCH v3 2/4] mm/damon/ops-common: atomically test and clear young on ptes and pmds Date: Fri, 2 Jun 2023 21:43:47 +0000 Message-Id: <20230602214347.85694-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230602191501.85553-1-sj@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Jun 2023 19:15:01 +0000 SeongJae Park wrote: > Hi Ryan, > > On Fri, 2 Jun 2023 18:14:25 +0100 Ryan Roberts wrote: > > > On 02/06/2023 17:35, Yu Zhao wrote: > > > On Fri, Jun 2, 2023 at 3:30 AM Ryan Roberts wrote: > > >> > > >> It is racy to non-atomically read a pte, then clear the young bit, then > > >> write it back as this could discard dirty information. Further, it is > > >> bad practice to directly set a pte entry within a table. Instead > > >> clearing young must go through the arch-provided helper, > > >> ptep_test_and_clear_young() to ensure it is modified atomically and to > > >> give the arch code visibility and allow it to check (and potentially > > >> modify) the operation. > > >> > > >> Fixes: 3f49584b262c ("mm/damon: implement primitives for the virtual memory address spaces"). > > > > > > Just to double check: was "Cc: stable@vger.kernel.org" overlooked or > > > deemed unnecessary? > > > > It was overlooked - incompetance strikes again! I was intending to cc the > > whole series. > > Not the whole patches in this series but only this patch is intended to be > merged in stable series, right? If I'm not wrong, you could add > 'Cc: ' tag here[1] when resending, to let stable kernel > maintainers easily understand exactly what patches should be merged in the > stable kernels. So, you wouldn't need to touch coverletter or cc whole series > but only this one. > > [1] https://www.kernel.org/doc/html/v4.10/process/stable-kernel-rules.html And I just found Andrew added the tag while adding this to the -mm queue. Thank you, Andrew! [1] https://lore.kernel.org/mm-commits/20230602205509.9DFBDC433D2@smtp.kernel.org/ Thanks, SJ > > > Thanks, > SJ >