diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-10-17 14:44:24 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-06 10:46:34 -0500 |
commit | e744cf2e3ab8535a8494a4cf0177de26f94586da (patch) | |
tree | 9d291dda6b8187781ebc42a9d97caf15d0eb9701 /include/linux/sunrpc | |
parent | 24c5684b65ff52ebfa942e8086d91a4966121ae7 (diff) |
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 <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 60394fbc4c70..0321fb53bd02 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -158,11 +158,6 @@ struct rpc_xprt { | |||
158 | resvport : 1; /* use a reserved port */ | 158 | resvport : 1; /* use a reserved port */ |
159 | 159 | ||
160 | /* | 160 | /* |
161 | * XID | ||
162 | */ | ||
163 | __u32 xid; /* Next XID value to use */ | ||
164 | |||
165 | /* | ||
166 | * State of TCP reply receive stuff | 161 | * State of TCP reply receive stuff |
167 | */ | 162 | */ |
168 | __be32 tcp_recm, /* Fragment header */ | 163 | __be32 tcp_recm, /* Fragment header */ |
@@ -193,8 +188,8 @@ struct rpc_xprt { | |||
193 | */ | 188 | */ |
194 | spinlock_t transport_lock; /* lock transport info */ | 189 | spinlock_t transport_lock; /* lock transport info */ |
195 | spinlock_t reserve_lock; /* lock slot table */ | 190 | spinlock_t reserve_lock; /* lock slot table */ |
191 | u32 xid; /* Next XID value to use */ | ||
196 | struct rpc_task * snd_task; /* Task blocked in send */ | 192 | struct rpc_task * snd_task; /* Task blocked in send */ |
197 | |||
198 | struct list_head recv; | 193 | struct list_head recv; |
199 | 194 | ||
200 | struct { | 195 | struct { |