diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-01 19:04:59 -0500 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:12:05 -0400 |
commit | 7e3bd65ebfd5d6cd76b8b979920c632d6e6b4b2a (patch) | |
tree | eb43094639021ef9c2d587b6e386be2aa9643dbe /net/rds | |
parent | 940786eb0a0faf3f30898a1cc7c1540d54c1aff6 (diff) |
RDS: Move some variables around for consistency
Also, add a comment.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/rdma.c | 3 | ||||
-rw-r--r-- | net/rds/rds.h | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c index 8d22999b0471..5ba514684431 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c | |||
@@ -747,6 +747,7 @@ int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, | |||
747 | } | 747 | } |
748 | 748 | ||
749 | rm->atomic.op_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME); | 749 | rm->atomic.op_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME); |
750 | rm->atomic.op_active = 1; | ||
750 | rm->atomic.op_recverr = rs->rs_recverr; | 751 | rm->atomic.op_recverr = rs->rs_recverr; |
751 | rm->atomic.op_sg = rds_message_alloc_sgs(rm, 1); | 752 | rm->atomic.op_sg = rds_message_alloc_sgs(rm, 1); |
752 | 753 | ||
@@ -782,8 +783,6 @@ int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm, | |||
782 | rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); | 783 | rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); |
783 | rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); | 784 | rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); |
784 | 785 | ||
785 | rm->atomic.op_active = 1; | ||
786 | |||
787 | return ret; | 786 | return ret; |
788 | err: | 787 | err: |
789 | if (page) | 788 | if (page) |
diff --git a/net/rds/rds.h b/net/rds/rds.h index 13ed30ac424d..46d190d08549 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h | |||
@@ -301,7 +301,13 @@ struct rds_message { | |||
301 | */ | 301 | */ |
302 | spinlock_t m_rs_lock; | 302 | spinlock_t m_rs_lock; |
303 | struct rds_sock *m_rs; | 303 | struct rds_sock *m_rs; |
304 | |||
305 | /* cookie to send to remote, in rds header */ | ||
304 | rds_rdma_cookie_t m_rdma_cookie; | 306 | rds_rdma_cookie_t m_rdma_cookie; |
307 | |||
308 | unsigned int m_used_sgs; | ||
309 | unsigned int m_total_sgs; | ||
310 | |||
305 | struct { | 311 | struct { |
306 | struct rm_atomic_op { | 312 | struct rm_atomic_op { |
307 | int op_type; | 313 | int op_type; |
@@ -343,8 +349,6 @@ struct rds_message { | |||
343 | struct scatterlist *op_sg; | 349 | struct scatterlist *op_sg; |
344 | } data; | 350 | } data; |
345 | }; | 351 | }; |
346 | unsigned int m_used_sgs; | ||
347 | unsigned int m_total_sgs; | ||
348 | }; | 352 | }; |
349 | 353 | ||
350 | /* | 354 | /* |