Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp135681pxb; Wed, 14 Apr 2021 11:12:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygGKrvC1K4E/B6Pde/gDlDaclj1/mZeeEuRUPDZHPvfZaEm8cTwOZJnEb73W+Sg98PrRli X-Received: by 2002:a63:1c48:: with SMTP id c8mr39953969pgm.234.1618423953983; Wed, 14 Apr 2021 11:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618423953; cv=none; d=google.com; s=arc-20160816; b=uumLmTVMgimsRWTeUGPW5lV9f7Sj5K9ZCggOwyYWoWkVPNFz8GVoV160oZ/ldKzPGi 6YkB44YrPFcxA8JFQ3DSqUqGxAa8QCb57wC7rCI0KhWCqAbNLOY0YyQpIYTxMIPllTVf +cRU0txOlgqxhHQjNo7fnJdNFpr4g90oGuKoLA04+ekN/nwL0hth0ZwhlCtNIL6rrBhX ajFgPDRcWFF7bNUScZyuItNzAezjoTcU/ElJV3cRGvcG+SjxNLxZI08NTRKt+N3tOcE/ p8sPNRZ3HkB6Ku2YK5XFGmCs9AJ7dMxPCTqIJVN1lVum64KwwMff7WmTmExI4t5Qi2Zh n3fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=mizE6SgB/DvvRtCs6xfXRrKrtpZq/oxFMl3wuIT+xAE=; b=hRwr6AFQ7xv/iTBo43aLyIYEs+OE6RGU07cPhnLQsLPI2yFikO+c7G9XcpunXgwkEi 427xfhzF4uQcFLu9QkT6W38xKmxEp/fRA9H8QWr2wPdSwiSe6mVXk2z6eg3Nt2ErYh98 PnGPZ/1q7BpzvIsnb9sYiInEHnLAoIDLDRhe0pG6jPMT4rkM0RsQ4dnGTBqnBjZvSpRK qB5a0B/vqgWoM8iAxAjuKvjOlT+rZdoIOFa/b78/AP/02Jw6oMnI0EeYXuevUGZBPJik b1ZEze6pUK3qNRMzV38qZ77YVbm4quZF/YdJlwUl5Rc6gS9FMBK3V+sS3XkeTsoc860V 3NdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=AcSfVs+A; 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 b11si367185plg.355.2021.04.14.11.12.07; Wed, 14 Apr 2021 11:12:33 -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=AcSfVs+A; 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 S1345450AbhDNRFn (ORCPT + 99 others); Wed, 14 Apr 2021 13:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232447AbhDNRFm (ORCPT ); Wed, 14 Apr 2021 13:05:42 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE353C061574 for ; Wed, 14 Apr 2021 10:05:20 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 77145724A; Wed, 14 Apr 2021 13:05:19 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 77145724A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1618419919; bh=mizE6SgB/DvvRtCs6xfXRrKrtpZq/oxFMl3wuIT+xAE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AcSfVs+A5QecE19bDlcYm0NaOWxffTyoEQ8xBHOj1QTpQD7Aeya3xUpZYaoxbAnAU OqBmZtAh/I67vOf+8AM6/jggKdf7Y+Ngy54BxAQY7SA2QTkiVxHrVGSRMcowH5/liz ecxVwZqEwe+51R0AqaDC0jS9ZY49iDGQWP1VWJNM= Date: Wed, 14 Apr 2021 13:05:19 -0400 From: "J. Bruce Fields" 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: <20210414170519.GD16800@fieldses.org> References: <20210414143138.15192-1-trondmy@kernel.org> <20210414143138.15192-2-trondmy@kernel.org> <20210414144033.GC16800@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210414144033.GC16800@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Apr 14, 2021 at 10:40:33AM -0400, bfields wrote: > Thanks! Testing.... ... and, test results back with these two patches applied, looks good! --b. > > --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