Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214462
b: refs/heads/master
c: 8576f37
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and Andy Grover committed Sep 9, 2010
1 parent 7833196 commit 0943963
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: b4e1da3c9a0ac9b01f45a8578b7347e3a31f9fb8
refs/heads/master: 8576f374ac9537674e3cccb0a9d43fa2b7ebbf5b
7 changes: 5 additions & 2 deletions trunk/net/rds/ib_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include "ib.h"
#include "xlist.h"

struct workqueue_struct *rds_ib_fmr_wq;

static DEFINE_PER_CPU(unsigned long, clean_list_grace);
#define CLEAN_LIST_BUSY_BIT 0

Expand Down Expand Up @@ -304,6 +306,9 @@ static struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev)
struct rds_ib_mr *ibmr = NULL;
int err = 0, iter = 0;

if (atomic_read(&pool->dirty_count) >= pool->max_items / 10)
queue_delayed_work(rds_ib_fmr_wq, &pool->flush_worker, 10);

while (1) {
ibmr = rds_ib_reuse_fmr(pool);
if (ibmr)
Expand Down Expand Up @@ -691,8 +696,6 @@ static int rds_ib_flush_mr_pool(struct rds_ib_mr_pool *pool,
return ret;
}

struct workqueue_struct *rds_ib_fmr_wq;

int rds_ib_fmr_init(void)
{
rds_ib_fmr_wq = create_workqueue("rds_fmr_flushd");
Expand Down

0 comments on commit 0943963

Please sign in to comment.