From: Chuck Lever Date: Tue, 17 Oct 2006 18:44:24 +0000 (-0400) Subject: SUNRPC: minor optimization of "xid" field in rpc_xprt X-Git-Tag: v3.12-rc1~31383^2~47^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e744cf2e3ab8535a8494a4cf0177de26f94586da;p=kernel%2Fkernel-generic.git SUNRPC: minor optimization of "xid" field in rpc_xprt 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 Signed-off-by: Trond Myklebust --- diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 60394fb..0321fb5 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -158,11 +158,6 @@ struct rpc_xprt { resvport : 1; /* use a reserved port */ /* - * XID - */ - __u32 xid; /* Next XID value to use */ - - /* * State of TCP reply receive stuff */ __be32 tcp_recm, /* Fragment header */ @@ -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 {