Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5783859rwn; Mon, 12 Sep 2022 14:25:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR56lsoZgNrCwMMoqSXDG3p44SeUbWfu7pkhQpLdK9vNd+TnEBUYhhKJQzDjVF4GKR+DxGUR X-Received: by 2002:a05:6a00:13a5:b0:542:4a6d:9a1e with SMTP id t37-20020a056a0013a500b005424a6d9a1emr10630886pfg.43.1663017912150; Mon, 12 Sep 2022 14:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663017912; cv=none; d=google.com; s=arc-20160816; b=g3PEwoJkoCx98TTKFwoTLi8/Swt4EQ+YxobwYc/aDDyIZNYynkwwICgSWDnQLQeHQL VRZV3TuhDVxVITdrCoqm1HL7lwSmVnUcq3aXGoPZulayUuXsn+IfxQY2VRj4h5FWvQwi Kttfu52K8mrWKq7aESNFq+S9bwsvohhN9wVag7WXNfJQlls4Z4zGxz/3ix6HxTQryqmp C3YuvzUK11u8OSb3R1OUGNKEdgyy0UkRMfmPh8paKwZ6JHyelMNvY+6bEjP+jLId13Ga C6BWl/uSsUmCR/ufMFnVhKctrzkynwT+sdFp5LfKnIjjmKRh8rfMuYKwJDLQKT4fSnQL l0kw== 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:references:in-reply-to:message-id:date:to:from:subject; bh=5heO3xpE9W8QcWtnKkeGCPrcWnWB631KsDl+0veDgBo=; b=ZKMAR0eMhX3hcd98lSpz7lENMyELYUS3lT5FbbV9C7nK+bUuUyoXIEUdtIFah5CTao PoSiipt1WfuBhsZtxVIoS17cEAt410lUAflFvtgcMQTmQ9z2z1IIjtsIsNQzYJAZjYl5 llnXMumP9OGmqKCrMR2xsTFZOga4tQRPsBUestEQ9BkgdQZi0VNEGeV0zwmO8IJ9QbCQ s2OfPi+nXXzYndv7r8dBItaSwRdAxbyZ6LxE5hKsHPyDFrqTxYfl5liDtYu1X4dwFNtk cfoxNqnB6MyjuxygxaCb2InL/xhuyUIHzwruPGIFZbUhrVIhJhwCTLz0KrV/Bte1L99X 0RXQ== 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 r10-20020a170902c7ca00b001782580ce87si6275459pla.314.2022.09.12.14.24.59; Mon, 12 Sep 2022 14:25:12 -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 S229616AbiILVW4 (ORCPT + 99 others); Mon, 12 Sep 2022 17:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiILVWy (ORCPT ); Mon, 12 Sep 2022 17:22:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE5A32AC65 for ; Mon, 12 Sep 2022 14:22:53 -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 659D9B80C9E for ; Mon, 12 Sep 2022 21:22:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B705C433D6 for ; Mon, 12 Sep 2022 21:22:51 +0000 (UTC) Subject: [PATCH v1 04/12] SUNRPC: Clarify comment that documents svc_max_payload() From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Mon, 12 Sep 2022 17:22:50 -0400 Message-ID: <166301777040.89884.17493610305295762804.stgit@oracle-102.nfsv4.dev> In-Reply-To: <166301759113.89884.7985359396842428444.stgit@oracle-102.nfsv4.dev> References: <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 Note the function returns a per-transport value, not a per-request value (eg, one that is related to the size of the available send or receive buffer space). Signed-off-by: Chuck Lever --- net/sunrpc/svc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 32a537f852fe..149171774bc6 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1554,8 +1554,12 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, EXPORT_SYMBOL_GPL(bc_svc_process); #endif /* CONFIG_SUNRPC_BACKCHANNEL */ -/* - * Return (transport-specific) limit on the rpc payload. +/** + * svc_max_payload - Return transport-specific limit on the RPC payload + * @rqstp: RPC transaction context + * + * Returns the maximum number of payload bytes the current transport + * allows. */ u32 svc_max_payload(const struct svc_rqst *rqstp) {