aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/rds.h
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-01-12 15:15:02 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:11:33 -0400
commite779137aa76d38d5c33a98ed887092ae4e4f016f (patch)
treeaf0a34f9334bd11ca507d4e63a963c561ff981ae /net/rds/rds.h
parent8690bfa17aea4c42da1bcf90a7af93d161eca624 (diff)
RDS: break out rdma and data ops into nested structs in rds_message
Clearly separate rdma-related variables in rm from data-related ones. This is in anticipation of adding atomic support. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds/rds.h')
-rw-r--r--net/rds/rds.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h
index 1d3eef67137f..07a750b3fb31 100644
--- a/net/rds/rds.h
+++ b/net/rds/rds.h
@@ -259,12 +259,18 @@ struct rds_message {
259 */ 259 */
260 spinlock_t m_rs_lock; 260 spinlock_t m_rs_lock;
261 struct rds_sock *m_rs; 261 struct rds_sock *m_rs;
262 struct rds_rdma_op *m_rdma_op;
263 rds_rdma_cookie_t m_rdma_cookie; 262 rds_rdma_cookie_t m_rdma_cookie;
264 struct rds_mr *m_rdma_mr; 263 struct {
265 unsigned int m_nents; 264 struct {
266 unsigned int m_count; 265 struct rds_rdma_op *m_rdma_op;
267 struct scatterlist m_sg[0]; 266 struct rds_mr *m_rdma_mr;
267 } rdma;
268 struct {
269 unsigned int m_nents;
270 unsigned int m_count;
271 struct scatterlist m_sg[0];
272 } data;
273 };
268}; 274};
269 275
270/* 276/*