Skip to content

Commit 2bac9a4

Browse files
jtlaytonchucklever
authored andcommitted
sunrpc: rearrange struct svc_rqst for fewer cachelines
This shrinks the struct by 4 bytes, but also takes it from 19 to 18 cachelines on x86_64. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 0f2b8ee commit 2bac9a4

File tree

1 file changed

+3
-3
lines changed
  • include/linux/sunrpc

1 file changed

+3
-3
lines changed

include/linux/sunrpc/svc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ struct svc_rqst {
245245
* initialisation success.
246246
*/
247247

248-
unsigned long bc_to_initval;
249-
unsigned int bc_to_retries;
250-
void ** rq_lease_breaker; /* The v4 client breaking a lease */
248+
unsigned long bc_to_initval;
249+
unsigned int bc_to_retries;
251250
unsigned int rq_status_counter; /* RPC processing counter */
251+
void **rq_lease_breaker; /* The v4 client breaking a lease */
252252
};
253253

254254
/* bits for rq_flags */

0 commit comments

Comments
 (0)