]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
SUNRPC: Clarify comment that documents svc_max_payload()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Sep 2022 21:22:50 +0000 (17:22 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:43 +0000 (14:02 -0400)
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 <chuck.lever@oracle.com>
net/sunrpc/svc.c

index 32a537f852fec2c9e2bdb7ebca33b44f86707adb..149171774bc631f7fb7c2703aed64d7e4e779100 100644 (file)
@@ -1554,8 +1554,12 @@ out:
 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)
 {