Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp993604ybn; Wed, 2 Oct 2019 09:15:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY3YpxTAND9dB4Iins6CQIHxQtmzd50xpFHBr4fRHM6AHg54az4V28KAzZRQLJLI9M33Kv X-Received: by 2002:a17:906:b6d5:: with SMTP id ec21mr3638221ejb.33.1570032930820; Wed, 02 Oct 2019 09:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570032930; cv=none; d=google.com; s=arc-20160816; b=g3hqZlxDihGX/x3kx9zVR6r10YdxYShL94BsBiNOHmSQ1Lvo0NX0hMYlTI/KbIKBpN 2Ilg+8l1psmxSKvYPKsgnvMAuX4y6is+Yl4X/rWhnZoBw/aM1wnPnztjYKuQXCcS97fY dzcTEwaeXpkdt3FtNlTdsoQETg1IpQ2W7zFQUMGBztRmZ0s7z+u4blaSeWvIIwT85KXJ BMHnUCNYI8jpEfFiTL0k2tjM3JGR+DqkPLxyM68OFGRDwY7JrI1fqr6nCn3a6uJM37zE YkCIK1p7gvmoYhNYCP8nGGRXVP2BGEjLvfRuL2fcdBTKuYzY9ao1qtaHTctbCbxyEswp nWKg== 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=C0X6fGXvOsz85XiiNWX9CdvC1WZ5zQu0X+cblgkEkGY=; b=UwS5+RCzyDYAIaFJx/OGGECeedJ61Pbf9FhsA/0L+QriBVPZ8h6DxDn+U+xiSuYmMd NOUKIA6rHQRMhJ7aVpbFNbwMymL06NAxS1w/ao7yTFKNycwXh/QLO73IkH23xbRlry1Y aEsBnCOi+zM/jTi7o8Bkpm2jTELWPPVAGNNxLWiTlndu7nMWlqEjbxjDLGWXPcvxn6aQ XIMk9HfQ0elrTg6jXGeC7+Rc3snIq3iAwMvdc0EZoMb4mYfdNdgvzIj1D9h5owcatlYs 7V1cA3PSFptlUNYE6xtPctA06hZnogRy25ZYYV4OmX+nwxrP5Y0IcfDNMZGHLy2y0fN9 G51g== 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 y28si12054506edb.162.2019.10.02.09.15.03; Wed, 02 Oct 2019 09:15:30 -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 S1729054AbfJBPwV (ORCPT + 99 others); Wed, 2 Oct 2019 11:52:21 -0400 Received: from fieldses.org ([173.255.197.46]:40564 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728735AbfJBPwV (ORCPT ); Wed, 2 Oct 2019 11:52:21 -0400 Received: by fieldses.org (Postfix, from userid 2815) id BB8641C97; Wed, 2 Oct 2019 11:52:20 -0400 (EDT) Date: Wed, 2 Oct 2019 11:52:20 -0400 To: Olga Kornievskaia Cc: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, bfields@redhat.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v7 13/19] NFSD return nfs4_stid in nfs4_preprocess_stateid_op Message-ID: <20191002155220.GA19089@fieldses.org> References: <20190916211353.18802-1-olga.kornievskaia@gmail.com> <20190916211353.18802-14-olga.kornievskaia@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190916211353.18802-14-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, Sep 16, 2019 at 05:13:47PM -0400, Olga Kornievskaia wrote: > @@ -1026,7 +1026,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 nfsd_file **src, > - stateid_t *dst_stateid, struct nfsd_file **dst) > + stateid_t *dst_stateid, struct nfsd_file **dst, > + struct nfs4_stid **stid) > { > __be32 status; > ... > @@ -1072,7 +1073,7 @@ static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) > __be32 status; > > status = nfsd4_verify_copy(rqstp, cstate, &clone->cl_src_stateid, &src, > - &clone->cl_dst_stateid, &dst); > + &clone->cl_dst_stateid, &dst, NULL); > if (status) > goto out; > > @@ -1260,7 +1261,7 @@ static int nfsd4_do_async_copy(void *data) > > status = nfsd4_verify_copy(rqstp, cstate, ©->cp_src_stateid, > ©->nf_src, ©->cp_dst_stateid, > - ©->nf_dst); > + ©->nf_dst, NULL); > if (status) > goto out; > So both callers pass NULL for the new stid parameter. Looks like that's still true after the full series of patches, too. --b.