]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/rds/iw_rdma.c
Merge remote-tracking branch 'rdma/for-next'
[karo-tx-linux.git] / net / rds / iw_rdma.c
index 47bd68451ff7417e267ff7a9812d03c954deb1eb..b09a40c1adceebf170617da3826c82002b04807a 100644 (file)
@@ -74,7 +74,7 @@ struct rds_iw_mr_pool {
        int                     max_pages;
 };
 
-static int rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all);
+static void rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all);
 static void rds_iw_mr_pool_flush_worker(struct work_struct *work);
 static int rds_iw_init_reg(struct rds_iw_mr_pool *pool, struct rds_iw_mr *ibmr);
 static int rds_iw_map_reg(struct rds_iw_mr_pool *pool,
@@ -460,14 +460,13 @@ void rds_iw_sync_mr(void *trans_private, int direction)
  * If the number of MRs allocated exceeds the limit, we also try
  * to free as many MRs as needed to get back to this limit.
  */
-static int rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all)
+static void rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all)
 {
        struct rds_iw_mr *ibmr, *next;
        LIST_HEAD(unmap_list);
        LIST_HEAD(kill_list);
        unsigned long flags;
        unsigned int nfreed = 0, ncleaned = 0, unpinned = 0;
-       int ret = 0;
 
        rds_iw_stats_inc(s_iw_rdma_mr_pool_flush);
 
@@ -519,7 +518,6 @@ static int rds_iw_flush_mr_pool(struct rds_iw_mr_pool *pool, int free_all)
        atomic_sub(nfreed, &pool->item_count);
 
        mutex_unlock(&pool->flush_lock);
-       return ret;
 }
 
 static void rds_iw_mr_pool_flush_worker(struct work_struct *work)