Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1369654lqa; Mon, 29 Apr 2024 06:51:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFUwddpcHSd1yR0vLkBYQoyHHquuu5LWxOg4yKDARIO2Ol4zCsmK9CWiLWcSvkafFFZUzTkPa0Zgw+1BJiqd1Xs6Zgb3DTQF4uF8bb1A== X-Google-Smtp-Source: AGHT+IG9Xl9TQbxK548NPSST9AX/rA9FFt1MP3tUrMGJTpPO9/rJWJFLY0QcqP0gE4arLJ01V+2O X-Received: by 2002:a05:6402:3496:b0:572:8aab:441c with SMTP id v22-20020a056402349600b005728aab441cmr790156edc.26.1714398693164; Mon, 29 Apr 2024 06:51:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714398693; cv=pass; d=google.com; s=arc-20160816; b=Qvwzrs9a+AcOmhdQgF6Fse/SpemESD/t9kn3bETYsp9VJKSHGJZ7wXhC0/KSccTt8Y S7o1qmGd5RpkevKhQKcECBJT2rPIRkbeqwyCxi070oPW2Mk78zaLeaLqY4ygTIkArNFX sfVpOEbJ92jI94y/148m9iIdOQpVosz5CTuIs27LHZMBI65eTQ8clBjF8ZV5e8S9XO/t zjV8ASTxtY5dmAS7/j+Urucey1+UljKkSo4dcqWZTBrQJzZ2QXfA19fRGpGFymmxXy7m aNVmzC5aFD446JCZLjHfmm+QH1Y8qa3GcebCPCz78K/LHACRCGzcxQh70DV55l0mAnLK 8Y3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8tbMD2h7PJ3lWi6PtX11/1+14job09F9/bpkbzHIXK8=; fh=blr983072yVNm5dui50xklBBMKW/hcydffm9gQsLhhY=; b=CNZIsYTXSoPX9etj8A1m6CcB0HNaCWJg3kixiCmstztul6P1X/N3qrnQ5SMVC7cJ2D XecQT7o8hQg1JcH5TlQBDUBG+KpHhdzb37HQh7lmnqA5PiR1dDUoG7EVKAVRfIS38HCn Z1j08RjaCNr7rbEzndtTFJjSk8SaX2U591+RGw5KN5w6ejsOYp8rzknN3gRDBIlfnH7A hJfTI6QrWfUjMpOYJLgy10aUBMdrUGy0Cd24dCGQTUcNtM2pinT5sz7JBPGSAyDHDOuM 6gMEosbNXWoYe9An+WG7xrR3L0AP1JV7/kewjyQnmQb8kJwgFSco2cMsOdiUcOUQxPWO ouWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1GjTcmX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-162394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y15-20020aa7cccf000000b0057016a97b00si13865149edt.465.2024.04.29.06.51.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1GjTcmX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-162394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E00661F232F8 for ; Mon, 29 Apr 2024 13:51:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AAE8745F4; Mon, 29 Apr 2024 13:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="T1GjTcmX" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D33C2E401 for ; Mon, 29 Apr 2024 13:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714398679; cv=none; b=RhDo50IS5+Peqpz/oZRaARRnnt6Dwg/cliWDWdS0N3gFfn8lqsuYnM/MSl1GHJfT/XvDxstP6jvQqBOaX9nUIzRmqnwnWSTqSEZQ6ZDLvhQPbZejFk2HhGFVfPssOjVtE5J31KdnTNUZ2ex38rpRYcCDhON488daUFJPOckoJG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714398679; c=relaxed/simple; bh=/jIJCnMvgZY5Up4X3Z7+dau8RuABLbiQc/6Wav+cbRs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eqFVzgR9jEGIftKrfLb40KKj+w23uzz1zF0KB1BP7NQM5Ff3S13Rh/zg0j800iwcqX2I/0LQOfxtgRUv8KMR8Lb9Ri8WJTJo+PMiSwXOMX+AGxaGiqOrIUT3D3+8Q3LVJtXGRf5o3bwrSkLSWy7OGb9tlpewVX+DjJGdWSrKfN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=T1GjTcmX; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714398677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8tbMD2h7PJ3lWi6PtX11/1+14job09F9/bpkbzHIXK8=; b=T1GjTcmXBqkFmfEFLhls6bEKwVwFv6gvsbJsAhcH74JOXfQ3BJCrPaqltyTbUF0snPKKoO BwWBF11Rj8Myg0imCJtQLSENaCfkYlX6dTiWt3nfKQjJtryx3TETE940HSegDwuSykiZ8H gdYAn/EOWKhFLUHmBWP3lilUqhZxZvE= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-202-Xw74E2WjOaGfQ788Kgabvg-1; Mon, 29 Apr 2024 09:51:14 -0400 X-MC-Unique: Xw74E2WjOaGfQ788Kgabvg-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-61bb2b4204eso5536587b3.3 for ; Mon, 29 Apr 2024 06:51:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714398674; x=1715003474; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8tbMD2h7PJ3lWi6PtX11/1+14job09F9/bpkbzHIXK8=; b=Ow4O8a+QIrZ9eG3eWwBuAiLtCMIKJYXmKqwnzlI5ZGVpRMvjNj0CrKQB/9DXc9DZC1 y3E68tMo+2tgkErzfepdaHqrBXZupYNKo9cOwL5ttWQbtxuoH0hR8TW+e6/W2led1j3q MKH/39HPhZSIvhb9Wzy8dm0dC37WHmoMRsn0hcZ7oNBflxPlM5WLFnyPWHl3eOYu1f1q GcJ2mN5FD7eWN0AkJkEjIX7wpN1MHHGrP/FIFAB30IK7cTBXog9wvLMpAN5XWgIa/Utp vp96ZSwSh3KM3OTwSdy2uGb73AIdXwDcpzfpiPUNaBWMoLX/c5NWwzCg9Dy6jFFblAzo OIdg== X-Gm-Message-State: AOJu0Yy4Agu5c+UN/DtWBnCp/khqCxQrM1+fptIInhmAK+j6+faDph+g B/z3evQkBro8P5dCjUOrLovA5KUd2NaK6aWa8QRdBkE8FtvSYbfyoxL57ODc1x7FJwUAE2sadgy LcHA4zMR2bDi/4uHp/U4D5i8vlYYsktgzNlccsyZCSyFqP/2RMnFSqvhC253Q7Q== X-Received: by 2002:a25:b29f:0:b0:de4:5c38:40b8 with SMTP id k31-20020a25b29f000000b00de45c3840b8mr9172214ybj.6.1714398673780; Mon, 29 Apr 2024 06:51:13 -0700 (PDT) X-Received: by 2002:a25:b29f:0:b0:de4:5c38:40b8 with SMTP id k31-20020a25b29f000000b00de45c3840b8mr9172187ybj.6.1714398673284; Mon, 29 Apr 2024 06:51:13 -0700 (PDT) Received: from x1n (pool-99-254-121-117.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id fu48-20020a05622a5db000b0043781985244sm10433284qtb.59.2024.04.29.06.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:51:13 -0700 (PDT) Date: Mon, 29 Apr 2024 09:51:10 -0400 From: Peter Xu To: David Hildenbrand , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christophe Leroy , Andrew Morton , "Aneesh Kumar K . V" , Lorenzo Stoakes , John Hubbard , linuxppc-dev@lists.ozlabs.org, Muchun Song , Jason Gunthorpe Subject: Re: [PATCH 2/2] mm/selftests: Don't prefault in gup_longterm tests Message-ID: References: <20240428190151.201002-1-peterx@redhat.com> <20240428190151.201002-3-peterx@redhat.com> <4171dbb6-81c0-4553-a405-a55f75be4cb7@redhat.com> <2338119d-060b-4127-9199-5ff39fd62fc4@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2338119d-060b-4127-9199-5ff39fd62fc4@redhat.com> On Mon, Apr 29, 2024 at 03:26:22PM +0200, David Hildenbrand wrote: > > The test patch here doesn't need to rush. David, how about you prepare a > > better and verified patch and post it separately, making sure to cover all > > the things we used to cover plus the unshare? IIUC it used to be not > > touched because of pte_write() always returns true with a write prefault. > > > > Then we let patch 1 go through first, and drop this one? > > Whatever you prefer! Thanks! Andrew, would you consider taking patch 1 but ignore this patch 2? Or do you prefer me to resend? -- Peter Xu