Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214379
b: refs/heads/master
c: f4dd96f
h: refs/heads/master
i:
  214377: ab3b134
  214375: 71a2170
v: v3
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent d3f744c commit a254b13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff87e97a9d70c9ae133d3d3d7792b26ab85f4297
refs/heads/master: f4dd96f7b27743e568cec519eff0f951c56833c6
2 changes: 1 addition & 1 deletion trunk/net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents)
WARN_ON(rm->m_used_sgs + nents > rm->m_total_sgs);

sg_ret = &sg_first[rm->m_used_sgs];

sg_init_table(sg_ret, nents);
rm->m_used_sgs += nents;

return sg_ret;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/rds/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,13 @@ static int rds_rdma_prepare(struct rds_message *rm,
goto out;
}

op->r_sg = rds_message_alloc_sgs(rm, nr_pages);
op->r_write = !!(args->flags & RDS_RDMA_READWRITE);
op->r_fence = !!(args->flags & RDS_RDMA_FENCE);
op->r_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME);
op->r_active = 1;
op->r_recverr = rs->rs_recverr;
WARN_ON(!nr_pages);
sg_init_table(op->r_sg, nr_pages);
op->r_sg = rds_message_alloc_sgs(rm, nr_pages);

if (op->r_notify || op->r_recverr) {
/* We allocate an uninitialized notifier here, because
Expand Down

0 comments on commit a254b13

Please sign in to comment.