]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sunrpc: rearrange struct svc_rqst for fewer cachelines
authorJeff Layton <jlayton@kernel.org>
Fri, 20 Jun 2025 12:16:05 +0000 (08:16 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:49 +0000 (12:46 -0400)
This shrinks the struct by 4 bytes, but also takes it from 19 to 18
cachelines on x86_64.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc.h

index 48666b83fe681aa57075bef4a46e66bc0f0fe3b9..40cbe81360ed493bc16e64b55818b21372e305f9 100644 (file)
@@ -245,10 +245,10 @@ struct svc_rqst {
                                                 * initialisation success.
                                                 */
 
-       unsigned long   bc_to_initval;
-       unsigned int    bc_to_retries;
-       void **                 rq_lease_breaker; /* The v4 client breaking a lease */
+       unsigned long           bc_to_initval;
+       unsigned int            bc_to_retries;
        unsigned int            rq_status_counter; /* RPC processing counter */
+       void                    **rq_lease_breaker; /* The v4 client breaking a lease */
 };
 
 /* bits for rq_flags */