Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1427034ybi; Wed, 17 Jul 2019 15:15:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDcg5SlKFnrbP0I5JQqrNfHzkIIRiXJ2udMTSyTNetH5/8Qs3zO4xGSt8pGQhK8fzP07Pu X-Received: by 2002:a17:90a:bc42:: with SMTP id t2mr46645021pjv.121.1563401729661; Wed, 17 Jul 2019 15:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563401729; cv=none; d=google.com; s=arc-20160816; b=PYhcOn5K9K+kUJnKcFrB7FDq63/R/MTiNIjGwpNaMeellG0HrV/Na0Pya6I3QfrH32 T2b3r7KMlKAstu5OSh0ktxAvGZUFS42HE1gpj1e5XYge1N8m4R2P6rwpKNROX+zZer3J Q4P+QJVjADhM2tW87b1z1g2Uj511QrrhrQyhV0I2KOG99ujOK/poXv4R0x7h+L8glRqq 9m2NuvAFOs2PUGJVFvlf8EPlW8G3QlAfRwbcRvbqKscHhhzaWAdban5udGCy0zgrnz0X 8LNrgipWb9+RiE5AVYKjMpL8pbr8V2bXYQJiJQP7+K1t2Mnh9/2GFzzLArqaaBAyhdhY 4HUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=jbqpPF+aH4z/dEkoXndW9eKd9ZrrGtrJ6kDAo59zbkE=; b=ufRjOWuRERFWGc7lSUJJhQiA4WUiq0cSJi3G5CwOir9eicXMxrssXT51vws9olQkfi ODENhj5jw7aQy1at9N0j55VOkZWVbnP0V4EtTWUmFjVx06Y8d01SzeVA6iObAti9QZ5W J6qgUdA76/0UmOn9jo2a1YmmKFNIZQmiqG8Dh9K0IsLIHjM+xyod8CV/olgWhYWQazC9 j76QwZHyPjHf/PT8oijz6YQuHU3tjAT4Bk3gs7TRzEcMKZMo8mtSnJ4sK66BHtDaK0qy 1JpMzXJsbrzPK0qxZ/vFD0j6TMXlbIInAIYjG12WNv16nH/32gXszaTTMOpsjahYTa0v pqBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si341084pfr.229.2019.07.17.15.15.15; Wed, 17 Jul 2019 15:15:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728113AbfGQWPH (ORCPT + 99 others); Wed, 17 Jul 2019 18:15:07 -0400 Received: from fieldses.org ([173.255.197.46]:59400 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbfGQWPH (ORCPT ); Wed, 17 Jul 2019 18:15:07 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 3A6041C95; Wed, 17 Jul 2019 18:15:07 -0400 (EDT) Date: Wed, 17 Jul 2019 18:15:07 -0400 To: Olga Kornievskaia Cc: bfields@redhat.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v4 4/8] NFSD add COPY_NOTIFY operation Message-ID: <20190717221507.GP24608@fieldses.org> References: <20190708192352.12614-1-olga.kornievskaia@gmail.com> <20190708192352.12614-5-olga.kornievskaia@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708192352.12614-5-olga.kornievskaia@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jul 08, 2019 at 03:23:48PM -0400, Olga Kornievskaia wrote: > From: Olga Kornievskaia > > Introducing the COPY_NOTIFY operation. > > Create a new unique stateid that will keep track of the copy > state and the upcoming READs that will use that stateid. Keep > it in the list associated with parent stateid. > > Return single netaddr to advertise to the copy. > > Signed-off-by: Andy Adamson > Signed-off-by: Olga Kornievskaia > --- > fs/nfsd/nfs4proc.c | 71 +++++++++++++++++++++++++++++++++++---- > fs/nfsd/nfs4state.c | 64 +++++++++++++++++++++++++++++++---- > fs/nfsd/nfs4xdr.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++-- > fs/nfsd/state.h | 18 ++++++++-- > fs/nfsd/xdr4.h | 13 +++++++ > 5 files changed, 247 insertions(+), 16 deletions(-) > > diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c > index cfd8767..c39fa72 100644 > --- a/fs/nfsd/nfs4proc.c > +++ b/fs/nfsd/nfs4proc.c > @@ -37,6 +37,7 @@ > #include > #include > #include > +#include > > #include "idmap.h" > #include "cache.h" > @@ -1033,7 +1034,8 @@ static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) > static __be32 > nfsd4_verify_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, > stateid_t *src_stateid, struct file **src, > - stateid_t *dst_stateid, struct file **dst) > + stateid_t *dst_stateid, struct file **dst, > + struct nfs4_stid **stid) > { > __be32 status; > > @@ -1050,7 +1052,7 @@ static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) > > status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, > dst_stateid, WR_STATE, dst, NULL, > - NULL); > + stid); Doesn't this belong with the previous patch? --b.