Skip to content

Commit

Permalink
SUNRPC: minor optimization of "xid" field in rpc_xprt
Browse files Browse the repository at this point in the history
Move the xid field in the rpc_xprt structure to be in the same cache line
as the reserve_lock, since these are used at the same time.

Test plan:
None.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Dec 6, 2006
1 parent 24c5684 commit e744cf2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/linux/sunrpc/xprt.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ struct rpc_xprt {
unsigned char shutdown : 1, /* being shut down */
resvport : 1; /* use a reserved port */

/*
* XID
*/
__u32 xid; /* Next XID value to use */

/*
* State of TCP reply receive stuff
*/
Expand Down Expand Up @@ -193,8 +188,8 @@ struct rpc_xprt {
*/
spinlock_t transport_lock; /* lock transport info */
spinlock_t reserve_lock; /* lock slot table */
u32 xid; /* Next XID value to use */
struct rpc_task * snd_task; /* Task blocked in send */

struct list_head recv;

struct {
Expand Down

0 comments on commit e744cf2

Please sign in to comment.