summaryrefslogtreecommitdiffstats
path: root/net/rds/rdma.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-01 16:04:59 -0800
committerAndy Grover <andy.grover@oracle.com>2010-09-08 18:12:05 -0700
commit7e3bd65ebfd5d6cd76b8b979920c632d6e6b4b2a (patch)
treeeb43094639021ef9c2d587b6e386be2aa9643dbe /net/rds/rdma.c
parent940786eb0a0faf3f30898a1cc7c1540d54c1aff6 (diff)
downloadlinux-7e3bd65ebfd5d6cd76b8b979920c632d6e6b4b2a.tar.bz2
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/rdma.c')
-rw-r--r--net/rds/rdma.c3
1 files changed, 1 insertions, 2 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,
}
rm->atomic.op_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME);
+ rm->atomic.op_active = 1;
rm->atomic.op_recverr = rs->rs_recverr;
rm->atomic.op_sg = rds_message_alloc_sgs(rm, 1);
@@ -782,8 +783,6 @@ int rds_cmsg_atomic(struct rds_sock *rs, struct rds_message *rm,
rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie);
rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie);
- rm->atomic.op_active = 1;
-
return ret;
err:
if (page)