Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp419268ybt; Sat, 13 Jun 2020 08:33:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeguYfHyfyX1EE4S+hFFI1p9k8UX48xixAieiOAjsEmMSE22DOnr1u/at78mpEjqlerWbx X-Received: by 2002:a05:6402:6cc:: with SMTP id n12mr16036621edy.266.1592062402350; Sat, 13 Jun 2020 08:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592062402; cv=none; d=google.com; s=arc-20160816; b=B/BkPw6Db3cDTIrhQETTqEp++NyYU5ySC/iv6+azX8Sxrjsqa9VpZ0muE6+rzAuInz schT7LsZHHGCEZEy8ZjPrkWtsWD/oXT902iLifh4c0wcPPpJIl/pNVOiaSFabQqfhhYd ZTNSiqVnvQwTa3BXTasHakkvBGIbR8VaPpbTBvBK9mG7GE8O3VDRRKXe2LX9iABddbtv yz15NJtK6w0/v0Xh/ncw9p+Vgr5iXXup/I+O7RRAfctlPk0jhxQtFvfKEYXQ3oHbxmCR Ry3GmdrQrlqaj++Mh0h2xXVz/eXONps0rS8k/m8UDacb2GpjxdOFCpmFw3z7f+KQ/uDz vKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cnmoUtj14WikNJCfL/YpkTqm/Xm9Fm9BZoaDdSANFls=; b=lvv7DsorIk6W4xpWycw2cQ+gA2Gq31Y6+gBIpRJwkupY+XHHHosrnkLhE3CL8rYuCp ul5gIQaIWZn0vGDZbaA14EGOO8zYsCUdnoJPq3VyTUW2HLbH3EyRKnWseK+j2W9CtVtj l7zYUGzom7A4DgP61vs8QB5kQTzVd2/DNHpeH5QwWqmd+MVv/ozG10tjtrOhlEXapYhM qnH9QUJsi5BVAAF7ZlZZQLwvWA2F4x3enkuk4f/BzcUIF8xUz+DxPs54sv3xX4qUoCDE TqEiIMFPqL5NZMgzJnBpNlEDCxOYEEuFkIzcyP3dwAuTUgXqBLT30nSuwoUZhDhAODIk AY8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os18si6028991ejb.390.2020.06.13.08.32.58; Sat, 13 Jun 2020 08:33:22 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbgFMPbN (ORCPT + 99 others); Sat, 13 Jun 2020 11:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgFMPbN (ORCPT ); Sat, 13 Jun 2020 11:31:13 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 195E7C03E96F for ; Sat, 13 Jun 2020 08:31:13 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jk87a-008E71-Sq; Sat, 13 Jun 2020 15:31:03 +0000 Date: Sat, 13 Jun 2020 16:31:02 +0100 From: Al Viro To: afzal mohammed Cc: Arnd Bergmann , Russell King - ARM Linux admin , Linus Walleij , "linux-kernel@vger.kernel.org" , Linux-MM , Linux ARM , Nicolas Pitre , Catalin Marinas , Will Deacon Subject: Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic() Message-ID: <20200613153102.GG23230@ZenIV.linux.org.uk> References: <9e1de19f35e2d5e1d115c9ec3b7c3284b4a4e077.1591885760.git.afzal.mohd.ma@gmail.com> <20200612135538.GA13399@afzalpc> <20200613120432.GA5319@afzalpc> <20200613125126.GE23230@ZenIV.linux.org.uk> <20200613125615.GF23230@ZenIV.linux.org.uk> <20200613134236.GA4086@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200613134236.GA4086@afzalpc> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 13, 2020 at 07:12:36PM +0530, afzal mohammed wrote: > Hi, > > On Sat, Jun 13, 2020 at 01:56:15PM +0100, Al Viro wrote: > > > Incidentally, what about get_user()/put_user()? _That_ is where it's > > going to really hurt... > > All other uaccess routines are also planned to be added, posting only > copy_{from,to}_user() was to get early feedback (mentioned in the > cover letter) Sure, but what I mean is that I'd expect the performance loss to be dominated by that, not by copy_from_user/copy_to_user on large amounts of data. Especially on the loads like kernel builds - a lot of stat() and getdents() calls there.