Skip to content

Commit

Permalink
RDS: IB: fix the rds_ib_fmr_wq kick call
Browse files Browse the repository at this point in the history
RDS IB mr pool has its own workqueue 'rds_ib_fmr_wq', so we need
to use queue_delayed_work() to kick the work. This was hurting
the performance since pool maintenance was less often triggered
from other path.

Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
  • Loading branch information
Santosh Shilimkar committed Oct 5, 2015
1 parent 9441c97 commit 2e1d6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rds/ib_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev)
int err = 0, iter = 0;

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

while (1) {
ibmr = rds_ib_reuse_fmr(pool);
Expand Down

0 comments on commit 2e1d6b8

Please sign in to comment.