Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5782706rwn; Mon, 12 Sep 2022 14:24:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5HnS3tQQd+Jm5JAD7l9bY34YRuU+/NBPWHBsvJGakZPbZ8EaUSDzIClxtrg3juu9i6XNBn X-Received: by 2002:a63:1843:0:b0:439:22e3:dda0 with SMTP id 3-20020a631843000000b0043922e3dda0mr3490045pgy.393.1663017841687; Mon, 12 Sep 2022 14:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663017841; cv=none; d=google.com; s=arc-20160816; b=GNO1mTl6Pf7EkoFU7zZmwAzcae9Bi0u+uu0yA8e11uDQaT3LK6L0WjmizUR8NaqlPk s52n+RTQzPKsSfNIx+KQZ5Bi6rNy/QUbq12IiUnzRI3oXCBqEkpJkCa+SjOVY/iCLR4m gs7BLMvitpF3LlvVzi1+CbtYKOQxOibtcxw5ymDoEoAfZkhXaFkxl6cdRGGkYH1OnJHA aahJu/82ZyEq/2T5h0AkxDR4BoHKcIMH+YG4UrbuLEZh5dhWDaBqvlsVNBGxfjnFpBLI 9cgkr96L5wojzlTfI0Eyx1+/yXv1VdgK99yJbErWrMmp2U9cK+agjIQ28MvFDQW5sW8C tFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:to:from:subject; bh=v8SLhP+5zpHyiMn60kTu4G0Ha+ZLb5Y/zrHqz1gNwJE=; b=aj/HQ+NJJlHUT91ak53mrl03j/khRZOcHoZTygsTF84I0B4YzLgc4H/6cjcp9WqdiE RB3SVv0K4lGOVqcrwxf3Jz9Nl/Jqqa89c3QujOZuQq6x0TwJLl+UyTe4GmSln5/ZslLq te+tKh1eL89L3EsJVsJ4HNP6VEhhJG1nQ1pEEAPhZaWMpEOsIHEmIyA5KV73zCOL2toE C8onYPou8NcB1lyEBfBqt4T7B+n8fW38Rr6+U7SYiu6UC1Tbm+bRBCLTmw7pqBijB5Gv bkc2ouVJ7JLj4WyRqEzFhWxou8RQEljwtSpN+qsq1VPQrPGlSsIlze+DgcovmQRcl2j7 +gng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a17090ab88c00b00202b984842csi6661642pjr.35.2022.09.12.14.23.44; Mon, 12 Sep 2022 14:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbiILVWd (ORCPT + 99 others); Mon, 12 Sep 2022 17:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiILVWc (ORCPT ); Mon, 12 Sep 2022 17:22:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7C14B0F4 for ; Mon, 12 Sep 2022 14:22:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 353D5B80DF2 for ; Mon, 12 Sep 2022 21:22:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA689C433D6 for ; Mon, 12 Sep 2022 21:22:27 +0000 (UTC) Subject: [PATCH v1 00/12] Short NFSD clean-ups From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Mon, 12 Sep 2022 17:22:27 -0400 Message-ID: <166301759113.89884.7985359396842428444.stgit@oracle-102.nfsv4.dev> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This is a set of clean-up patches and minor optimizations for NFSD. I happened upon these unrelated changes while addressing recent bugs. --- Chuck Lever (12): SUNRPC: Optimize svc_process() SUNRPC: Parametrize how much of argsize should be zeroed NFSD: Reduce amount of struct nfsd4_compoundargs that needs clearing SUNRPC: Clarify comment that documents svc_max_payload() NFSD: Refactor common code out of dirlist helpers NFSD: Use xdr_inline_decode() to decode NFSv3 symlinks NFSD: Clean up WRITE arg decoders SUNRPC: Fix typo in xdr_buf_subsegment's kdoc comment NFSD: Clean up nfs4svc_encode_compoundres() NFSD: Remove "inline" directives on op_rsize_bop helpers NFSD: Remove unused nfsd4_compoundargs::cachetype field NFSD: Pack struct nfsd4_compoundres fs/lockd/svc4proc.c | 24 ++++++++ fs/lockd/svcproc.c | 24 ++++++++ fs/nfs/callback_xdr.c | 1 + fs/nfsd/nfs2acl.c | 5 ++ fs/nfsd/nfs3acl.c | 3 + fs/nfsd/nfs3proc.c | 32 +++++++--- fs/nfsd/nfs3xdr.c | 18 ++---- fs/nfsd/nfs4proc.c | 123 +++++++++++++++++++++++-------------- fs/nfsd/nfs4xdr.c | 65 +++++++++++++++----- fs/nfsd/nfsproc.c | 28 ++++++--- fs/nfsd/nfsxdr.c | 4 +- fs/nfsd/xdr4.h | 6 +- include/linux/sunrpc/svc.h | 1 + include/linux/sunrpc/xdr.h | 2 + net/sunrpc/svc.c | 34 +++++----- net/sunrpc/xdr.c | 24 +++++++- 16 files changed, 278 insertions(+), 116 deletions(-) -- Chuck Lever