Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2923517pxy; Mon, 3 May 2021 11:00:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGrcs1PGvpzCxFK3Cyg71Afwy9JIWm5XmGgfNAtrvWbWLueAapEoPe/I+9xVTM3ElgZtjq X-Received: by 2002:a05:6402:22af:: with SMTP id cx15mr21368254edb.317.1620064803535; Mon, 03 May 2021 11:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620064803; cv=none; d=google.com; s=arc-20160816; b=vHFqdxAx3XqYWPkMp+CUHlVJhXOWdkxuNrdYzqbA7B/fPFarN0RrLHdSn92Eti2c4q ZndY7rR2w1ZtSVVRJYadk4HMd9KkXbuEbFnX4c7VdZHl3rgnxrNkLv4DbY+efK5t9qBn tyvuxhu+m5nIB5rfKw3/ZD3vyQaFWsiWJkpJ7GzFafSxJbRbmAJFtrtkpfI4ENgRn1WO VDwGixBK7f07AghybbN/Z7dM9fVzVwEgxJWeSXNzGYjYdMLO2hAgNJAMLrW96VtXRtPu pM+t1gsAjHb6xmVC413+On12xuCRj5nQnT9+W9AsetNiqRSEYXnWaKZVla6nuC4uN5YK wh4A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:date:dkim-signature:dkim-filter; bh=mdP85pDhSB/x0JuF8VExHb8lOHc2t2rWUOwEgU1ivD0=; b=GWjlEg1rqBv94rv7CWZHb+wAIQ4jtCYwi+TJ8BN8iFF3gMSCJhGjRx5QxvRQ3Jyfk9 rORl3vkMtI6gCPyP2sL2/486QUtP+QmUP3mF0SAowNnDXWyjt9VezJXAEK84rmpA5pod kd6qbqEcmL1hV6CAJUUfOagI1r/zbL3qdGTfkpf5hZlhNwfKFa1y7OSkwPGJtUwMqa+h 0wiZYlHKO9yC2ESgng8sPnkTZ0WDs+Nrwc6qVAvxvzSK5fiEemOMe+b0IFJIutTdpZde 8UL3XvsvraMYvCHBngklIFpDstbSOxuGn/s3gJJouY/ndWZAv0fBygNxS5xLKRybEIk/ Enkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=saSpGNPW; 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 w4si1104422edx.275.2021.05.03.10.59.22; Mon, 03 May 2021 11:00:03 -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=saSpGNPW; 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 S231285AbhECSAL (ORCPT + 99 others); Mon, 3 May 2021 14:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbhECSAL (ORCPT ); Mon, 3 May 2021 14:00:11 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2238C06174A for ; Mon, 3 May 2021 10:59:17 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 1282B5047; Mon, 3 May 2021 13:59:17 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 1282B5047 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1620064757; bh=mdP85pDhSB/x0JuF8VExHb8lOHc2t2rWUOwEgU1ivD0=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=saSpGNPW4W/u2og8RiNI47Csx3+XttCzG0jx+Nw7TVmGJ62PCf5UDfrYuyzaD6KzA kNwO8VYuG/K+H0Splvlw0w6HI5g5fI1IzWX1m05pE3trq3EtSyYyQSN6zMHndDh2Md TTunfhwTCy/Gl767fyUh7XsHP4kfNbTNZC+vCIfQ= Date: Mon, 3 May 2021 13:59:17 -0400 To: Chuck Lever Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v1 00/29] server-side lockd XDR overhaul Message-ID: <20210503175917.GA18779@fieldses.org> References: <162005520101.23028.15766816408658851498.stgit@klimt.1015granger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <162005520101.23028.15766816408658851498.stgit@klimt.1015granger.net> 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 On Mon, May 03, 2021 at 11:22:47AM -0400, Chuck Lever wrote: > Same approach as what has been done for NFSv2, NFSv3, and NFSv4: XDR > decoding and encoding functions have been updated to use xdr_stream. > This adopts common XDR infrastructure for these functions and makes > constructing and parsing more secure and robust. Nothing objectionable to me on a quick skim, but it doesn't build when I apply to 5.12 (fs/lockd/svc.c:794:9: error: implicit declaration of function ‘svcxdr_init_encode’). Should I take it from a git tree? --b. > > --- > > Chuck Lever (29): > lockd: Remove stale comments > lockd: Create a simplified .vs_dispatch method for NLM requests > lockd: Common NLM XDR helpers > lockd: Update the NLMv1 void argument decoder to use struct xdr_stream > lockd: Update the NLMv1 TEST arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 LOCK arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 CANCEL arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 UNLOCK arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 nlm_res arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 SM_NOTIFY arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 SHARE arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 FREE_ALL arguments decoder to use struct xdr_stream > lockd: Update the NLMv1 void results encoder to use struct xdr_stream > lockd: Update the NLMv1 TEST results encoder to use struct xdr_stream > lockd: Update the NLMv1 nlm_res results encoder to use struct xdr_stream > lockd: Update the NLMv1 SHARE results encoder to use struct xdr_stream > lockd: Update the NLMv4 void arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 TEST arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 LOCK arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 CANCEL arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 UNLOCK arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 nlm_res arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 SM_NOTIFY arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 SHARE arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 FREE_ALL arguments decoder to use struct xdr_stream > lockd: Update the NLMv4 void results encoder to use struct xdr_stream > lockd: Update the NLMv4 TEST results encoder to use struct xdr_stream > lockd: Update the NLMv4 nlm_res results encoder to use struct xdr_stream > lockd: Update the NLMv4 SHARE results encoder to use struct xdr_stream > > > fs/lockd/svc.c | 43 ++++ > fs/lockd/svcxdr.h | 151 ++++++++++++++ > fs/lockd/xdr.c | 402 ++++++++++++++++++------------------ > fs/lockd/xdr4.c | 403 +++++++++++++++++++------------------ > include/linux/lockd/xdr.h | 6 - > include/linux/lockd/xdr4.h | 7 +- > 6 files changed, 610 insertions(+), 402 deletions(-) > create mode 100644 fs/lockd/svcxdr.h > > -- > Chuck Lever