Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3037497pxv; Mon, 12 Jul 2021 07:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjUIM+zpeVSVMe0+CmtPB6LtQQjP/4Pnu88r5ZmQipD5khlzFAVjrVq+6obY5t0GvyNZqa X-Received: by 2002:a92:710a:: with SMTP id m10mr38528183ilc.254.1626101575153; Mon, 12 Jul 2021 07:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626101575; cv=none; d=google.com; s=arc-20160816; b=fFNbUK/yF0U9/s0sTWx1mXkjbV8JDvRaj3Rj65LjkPR6s9YKlVMQnGxnnCo4WAFqeW bPr1VEyPv2m7YWSeBSSaMN+Vkoochq3nq4+hPgPwO1jmqDb71aZC4PA30Vd9giYPtcWX NX5xukequmbIlsMB8lfhKnkssD7Qxtkg8JZx6pyz34gX6u4QcmROW8Vd4okP5OAm7VO/ RmzTN7/xDpyPlVcfRvzaQ1UD06iPxsFM5EnEgmakEVmNowznZ1KxLOXOF9P1y5UlLLlf O9eUIoqpVjaxIg7OlNKf44jqDeJtgao4KRPyzd2xfoBoVYvpdXwgVXUJr4TAUkBdLYVp Uxfw== 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=P/mOblViVHNnxHmSyD3ru3ecOJzOppI5p25VrSvf6gI=; b=XLprIImDCj5FI3Eapy2rM43O1KcGdZiUoSHOpeXPwo1IPS+nWb4NTYUV5Zv+RRO/lU Rr/LDrX51qau+j30qBxnvB8yuKUjZbEuLEt6pj3BsaPYq46i6O2vKoZ9Cv/aDS9GjCNM 48ehjIBkeTKsc4M8ijdLT8DJMqxPCh5h9UFh1E/5GCvNXz2M2ZAl43c+bzLBfOk32TjC ey+njmE0pjLX5Sw3SJAsJB0K6Cuo2+61L8XLU7hx5EUAtnI6UkuPo4v2DFVkUnK6sOap jllFLgFiyd3Ah9z1gFNeEK7r8Svrx5w/VMzspyLiAHSTxgfxpQrm4td20YNywxHjemZs A4iQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si18018081jal.57.2021.07.12.07.52.34; Mon, 12 Jul 2021 07:52:55 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235263AbhGLOzI (ORCPT + 99 others); Mon, 12 Jul 2021 10:55:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:38554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235209AbhGLOzF (ORCPT ); Mon, 12 Jul 2021 10:55:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C33126120A for ; Mon, 12 Jul 2021 14:52:16 +0000 (UTC) Subject: [PATCH RFC 0/7] XDR overhaul of NFS callback service From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Mon, 12 Jul 2021 10:52:16 -0400 Message-ID: <162610122257.2466.7452891285800059767.stgit@klimt.1015granger.net> User-Agent: StGit/1.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The purpose of this series is to prepare for the optimization of svc_process_common() to handle NFSD workloads more efficiently. In other words, NFSD should be the lubricated common case, and callback is the use case that takes exceptional paths. Note: For the moment these are compile-tested only. There are some additional clean-ups that will be possible once this series is merged. See https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/log/?h=nfsd-xdr-stream for follow-on work. --- Chuck Lever (7): SUNRPC: Add svc_rqst::rq_auth_stat SUNRPC: Set rq_auth_stat in the pg_authenticate() callout SUNRPC: Eliminate the RQ_AUTHERR flag NFS: Add a private local dispatcher for NFSv4 callback operations NFS: Remove unused callback void encoder and decoder NFS: Extract the xdr_init_encode/decode() calls from decode_compound NFS: Clean up the synopsis of callback process_op() fs/lockd/svc.c | 2 + fs/nfs/callback.c | 4 ++ fs/nfs/callback_xdr.c | 64 ++++++++++++++----------------- include/linux/sunrpc/svc.h | 3 +- include/linux/sunrpc/svcauth.h | 4 +- include/trace/events/sunrpc.h | 9 ++--- net/sunrpc/auth_gss/svcauth_gss.c | 47 ++++++++++++----------- net/sunrpc/svc.c | 39 ++++++------------- net/sunrpc/svcauth.c | 8 ++-- net/sunrpc/svcauth_unix.c | 18 +++++---- 10 files changed, 92 insertions(+), 106 deletions(-) -- Chuck Lever