Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284341
b: refs/heads/master
c: 5b7bf42
h: refs/heads/master
i:
  284339: 3f011e2
v: v3
  • Loading branch information
Roland Dreier authored and David S. Miller committed Jan 13, 2012
1 parent 39a4cbb commit 6cfb9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 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: 8d82f219c2d476811cd3157a39c7b5c1f045ebc3
refs/heads/master: 5b7bf42e3d47fb16aaf53776ae3eaaf1be247a35
15 changes: 1 addition & 14 deletions trunk/net/rds/iw_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,17 +477,6 @@ void rds_iw_sync_mr(void *trans_private, int direction)
}
}

static inline unsigned int rds_iw_flush_goal(struct rds_iw_mr_pool *pool, int free_all)
{
unsigned int item_count;

item_count = atomic_read(&pool->item_count);
if (free_all)
return item_count;

return 0;
}

/*
* Flush our pool of MRs.
* At a minimum, all currently unused MRs are unmapped.
Expand All @@ -500,7 +489,7 @@ static int rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all)
LIST_HEAD(unmap_list);
LIST_HEAD(kill_list);
unsigned long flags;
unsigned int nfreed = 0, ncleaned = 0, unpinned = 0, free_goal;
unsigned int nfreed = 0, ncleaned = 0, unpinned = 0;
int ret = 0;

rds_iw_stats_inc(s_iw_rdma_mr_pool_flush);
Expand All @@ -514,8 +503,6 @@ static int rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all)
list_splice_init(&pool->clean_list, &kill_list);
spin_unlock_irqrestore(&pool->list_lock, flags);

free_goal = rds_iw_flush_goal(pool, free_all);

/* Batched invalidate of dirty MRs.
* For FMR based MRs, the mappings on the unmap list are
* actually members of an ibmr (ibmr->mapping). They either
Expand Down

0 comments on commit 6cfb9a5

Please sign in to comment.