diff options
author | santosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com> | 2015-08-25 15:02:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 19:28:11 -0400 |
commit | ef5217a6e2e60bc3d0679f2652480b99730956fe (patch) | |
tree | 76438bbbb102865fcc64bc091bdafb250591c004 /net/rds | |
parent | ad1d7dc0d79d3dd2c5d2931b13edbd4fe33e5fac (diff) |
RDS: flush the FMR pool less often
FMR flush is an expensive and time consuming operation. Reduce the
frequency of FMR pool flush by 50% so that more FMR work gets accumulated
for more efficient flushing.
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib_rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index 2ac78c9879ea..e596dfb76038 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c | |||
@@ -737,7 +737,7 @@ void rds_ib_free_mr(void *trans_private, int invalidate) | |||
737 | 737 | ||
738 | /* If we've pinned too many pages, request a flush */ | 738 | /* If we've pinned too many pages, request a flush */ |
739 | if (atomic_read(&pool->free_pinned) >= pool->max_free_pinned || | 739 | if (atomic_read(&pool->free_pinned) >= pool->max_free_pinned || |
740 | atomic_read(&pool->dirty_count) >= pool->max_items / 10) | 740 | atomic_read(&pool->dirty_count) >= pool->max_items / 5) |
741 | queue_delayed_work(rds_ib_fmr_wq, &pool->flush_worker, 10); | 741 | queue_delayed_work(rds_ib_fmr_wq, &pool->flush_worker, 10); |
742 | 742 | ||
743 | if (invalidate) { | 743 | if (invalidate) { |