Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp146439pxb; Wed, 4 Nov 2020 17:32:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNZWjbXSaq7wT2bJer9hY0vb6UQpdVwM+ULXgYnqHjciAYxIQ12y7CNMwngiFEGDbQ2w2N X-Received: by 2002:aa7:d493:: with SMTP id b19mr150423edr.279.1604539967682; Wed, 04 Nov 2020 17:32:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604539967; cv=none; d=google.com; s=arc-20160816; b=NmZzn0r7KlkPBxSS6dUWDFvlxsvd1aaFraS8vLAGmZeirBA4FrcjtQf07cLZaOHmNS +t3kUND6IfJISAnh1YrC8GPPHovMNixZ2LuvmYdgzXNpS28U4YaZ8gL/2KFo+iNqU4U0 nKhkfRJ+56jMUZlg5qJeG2p+pdOS23oM7ipGo8IqEQS/cXZWQEIL9UuuSW61C9rZH0eq YoQ/PuYR+uzn/ZkcN8KRdBTfmQe3rwCot7U2kbQ4epRS6gg9qlZwvggO+dorw4OIJtvp 2TPzePXBvAz32EG5+Wh+OJe5OKZpP9nsu7/Iq1z2xy3iPCmm+hd8p+526viKbiV1kFIh JNkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=8gtsVWgMSeMVXhnpXYOlQXpvYf1v4RBF/nsEHCTo1y4=; b=Y1Kg3B62VRlsZGVr0kQ4By+Z4fhqYkactNcBEqEbPV5z2qjJRXSLFLucupvMfCfNaz atRGjK9qchgCc7WGQ53TXdCgbNNnsdYKWBcYU4RZJx8MKRW+VCzoqivNHpDPqUdnxl+K WnxbVpoIAjDL1GnY8LihZpcad337xArDXfIJdsO5/CZ9Hlq2XM+dAal2S761pnQn2m2Y kbaRLO4VJ9XgoB9xY5qZfV0tM5tAa58F1IwExVIKVJLO6LHb/re3OsvGqqT7rWXS+mw0 cWarsjQBxMDNBVk3lm+GNPxESo9lmQev82CsSQOe+Wns9MqwpmtMFhnFPKh+oq2m+U5G U1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BGTDno4R; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si43761ejn.227.2020.11.04.17.32.22; Wed, 04 Nov 2020 17:32:47 -0800 (PST) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BGTDno4R; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729382AbgKDTyY (ORCPT + 99 others); Wed, 4 Nov 2020 14:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbgKDTyY (ORCPT ); Wed, 4 Nov 2020 14:54:24 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C79DC0613D3 for ; Wed, 4 Nov 2020 11:54:24 -0800 (PST) Date: Wed, 4 Nov 2020 20:54:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604519662; 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=8gtsVWgMSeMVXhnpXYOlQXpvYf1v4RBF/nsEHCTo1y4=; b=BGTDno4RfZispU1N29WBB7OgsoFmpgpKgMywMwCPYaTfcnhmkx2pCKslxx0QEFy9WMWPnP zgBfOj+yD56Rkm9YbIJBI4Ve5DC/tVEHDPAwDt0AKBNwlyBhPPjuGjRrqhttp6V2wMVpeZ 0qvBrx9D9SkCgRKMqgwYng/sbp8Hj/8mGT07IooFA73BjQeECmPts29kC0tNrZxGp8gzMq xE29iY7BGwjdDImUx/GZbOBTfg3fkl9fF+8+1SDSvd5j68KeLD2E0IH2YT+24Lz3tKxkDX Nod7gYghL7lZzhTIQG+USCRwmwITkbqHuBnkj7TZzGF9TO2XXoh6MBkXe5m9zg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604519662; 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=8gtsVWgMSeMVXhnpXYOlQXpvYf1v4RBF/nsEHCTo1y4=; b=uGyj84SQ+NJnDhuoQElNPpssM6zhcDzMDZEbjXRujmte1uKv27Go6+e4z9N2J75QeeZhcD 2P7kKeeosh2ebNCg== From: "Ahmed S. Darwish" To: Linus Torvalds Cc: John Hubbard , Jason Gunthorpe , Peter Xu , Linux Kernel Mailing List , Andrea Arcangeli , Andrew Morton , "Aneesh Kumar K.V" , Christoph Hellwig , Hugh Dickins , Jan Kara , Jann Horn , Kirill Shutemov , Kirill Tkhai , Leon Romanovsky , Linux-MM , Michal Hocko , Oleg Nesterov , Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , Sebastian Siewior Subject: Re: [PATCH v2 2/2] mm: prevent gup_fast from racing with COW during fork Message-ID: <20201104195420.GA5741@lx-t490> References: <20201103001712.GB52235@lx-t490> <20201103002532.GL2620339@nvidia.com> <20201103004133.GD52235@lx-t490> <20201103065225.GA63301@lx-t490> <20201104013212.GA82153@lx-t490> <29e4f7f7-5774-7d8f-694b-75eb55ae1b2e@nvidia.com> <20201104031711.GA227990@lx-t490> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 10:38:57AM -0800, Linus Torvalds wrote: ... > > Looks reasonable to me. > > And can you add a few comments to the magic type macros, so that it's > a lot more obvious what the end result was. ... > > I can see it when I really look, but when looking at the actual use, > it's very non-obvious indeed. > ACK, will do. > Linus Thanks, -- Ahmed S. Darwish Linutronix GmbH