Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp73851pxb; Wed, 14 Apr 2021 09:42:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy99it+9AMx27lBcTY8HG/gk0CvicG1jibTvZ+GD4vXmKlURZY4uwRd6yXK7w602f+hvE4z X-Received: by 2002:a63:ea53:: with SMTP id l19mr37479729pgk.176.1618418570014; Wed, 14 Apr 2021 09:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618418570; cv=none; d=google.com; s=arc-20160816; b=m/Sc0CGlIa7p+rzU6iNb25UjoVym7gG/yio6L5TQqndeHnE7Il/kAdmY0RsnMIN8xz l6QSbvDWZgF06y3mv5QyZDy+jQ9d1DLSCWyFV79d3TlXHULmUdNHNCvYkIrPwUqJu01N gE6LUse2jQNyQsX2iytfyxEPPzqvu03F4iAnDCqN5G7yqBO0ungeqVPUy40k8Nyd2yjc KSoBsDVRteGH6/UsvQyZoGkI9AbhkoaP8HxyJMpuy6b/kZ9BTA75S+QSZAm1T+x+RWrd g5IZVdSTMumbL8PzmAWy9op/yG2XoEpoKsvOSckZUb+qLuL5eflSVKrUZDeNlBpq535j UMjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=qOJgkaSA51CVYqAKbBXwO3MsopB+BDfJem651yfKiS4=; b=t3w3aBRPIShdyLTRXLX/tEMCWkjqjevjvZsWmasy4zzdniPeRdHCtJW9O7GeFICy3M PW+bDKCXwTPEGI1bKKLVua7YzEl9OetNPAFc9476mFzz+ntBn4ZfVCGJ6BD0qcnc/p11 ooUikuj/n4j5Hb0E3V4cgACgTwDL6jt13++1BKxjpe+a3ZGyKNilWE5vH8ztXojN1zfg u6hKCKxBGF4TVNppZkQOIqcCckaKBzcItxzKfslaRxtv2DSo1gpX3U2Gj5xSWFvsHQfQ lFZPb8qjFGbREKfZn6me/3xEi8AT3XXoV8H5dr910m4jQLkkp6NYB0AfkKJH6YsHNDJD Sf9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=bV6fxLx8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 a133si29733pfd.294.2021.04.14.09.42.35; Wed, 14 Apr 2021 09:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@fieldses.org header.s=default header.b=bV6fxLx8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233968AbhDNOk4 (ORCPT + 99 others); Wed, 14 Apr 2021 10:40:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbhDNOkz (ORCPT ); Wed, 14 Apr 2021 10:40:55 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 897F9C061574 for ; Wed, 14 Apr 2021 07:40:34 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id D4DC96A45; Wed, 14 Apr 2021 10:40:33 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org D4DC96A45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1618411233; bh=qOJgkaSA51CVYqAKbBXwO3MsopB+BDfJem651yfKiS4=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=bV6fxLx8sLGYSv2H/fDEhH9nXyKqPgkI4PwmBPVLOgxcxl7fRrwTm2DoZSF82tWTZ 07RRHNqpVxN8SV2yXFikHgq69P7jslaXFS8XVK+nSxAveQGpUh6NPAW6yWwsW4qGkp mTzlxpebsBKj38QA/t8QieMtwOsR3ixmjQeHWHiU= Date: Wed, 14 Apr 2021 10:40:33 -0400 To: trondmy@kernel.org Cc: "J. Bruce Fields" , Olga Kornievskaia , linux-nfs@vger.kernel.org Subject: Re: [PATCH 2/2] NFSv42: Don't force attribute revalidation of the copy offload source Message-ID: <20210414144033.GC16800@fieldses.org> References: <20210414143138.15192-1-trondmy@kernel.org> <20210414143138.15192-2-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210414143138.15192-2-trondmy@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Thanks! Testing.... --b. On Wed, Apr 14, 2021 at 10:31:38AM -0400, trondmy@kernel.org wrote: > From: Trond Myklebust > > When a copy offload is performed, we do not expect the source file to > change other than perhaps to see the atime be updated. > > Signed-off-by: Trond Myklebust > --- > fs/nfs/nfs42proc.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c > index 3875120ef3ef..a24349512ffe 100644 > --- a/fs/nfs/nfs42proc.c > +++ b/fs/nfs/nfs42proc.c > @@ -390,12 +390,7 @@ static ssize_t _nfs42_proc_copy(struct file *src, > } > > nfs42_copy_dest_done(dst_inode, pos_dst, res->write_res.count); > - > - spin_lock(&src_inode->i_lock); > - nfs_set_cache_invalid(src_inode, NFS_INO_REVAL_PAGECACHE | > - NFS_INO_REVAL_FORCED | > - NFS_INO_INVALID_ATIME); > - spin_unlock(&src_inode->i_lock); > + nfs_invalidate_atime(src_inode); > status = res->write_res.count; > out: > if (args->sync) > -- > 2.30.2