提交 e744cf2e 编写于 作者: C Chuck Lever 提交者: Trond Myklebust

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: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 24c5684b
...@@ -157,11 +157,6 @@ struct rpc_xprt { ...@@ -157,11 +157,6 @@ struct rpc_xprt {
unsigned char shutdown : 1, /* being shut down */ unsigned char shutdown : 1, /* being shut down */
resvport : 1; /* use a reserved port */ resvport : 1; /* use a reserved port */
/*
* XID
*/
__u32 xid; /* Next XID value to use */
/* /*
* State of TCP reply receive stuff * State of TCP reply receive stuff
*/ */
...@@ -193,8 +188,8 @@ struct rpc_xprt { ...@@ -193,8 +188,8 @@ struct rpc_xprt {
*/ */
spinlock_t transport_lock; /* lock transport info */ spinlock_t transport_lock; /* lock transport info */
spinlock_t reserve_lock; /* lock slot table */ spinlock_t reserve_lock; /* lock slot table */
u32 xid; /* Next XID value to use */
struct rpc_task * snd_task; /* Task blocked in send */ struct rpc_task * snd_task; /* Task blocked in send */
struct list_head recv; struct list_head recv;
struct { struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册