Re: [PATCH mlx5-next v1] RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow

2021-02-01 Thread Leon Romanovsky
On Mon, Feb 01, 2021 at 12:03:15PM -0800, Saeed Mahameed wrote: > On Mon, 2021-02-01 at 15:49 -0400, Jason Gunthorpe wrote: > > On Sun, Jan 31, 2021 at 03:24:50PM +0200, Yishai Hadas wrote: > > > On 1/29/2021 2:23 PM, Saeed Mahameed wrote: > > > > > diff --git a/drivers/net/ethernet/mellanox/mlx5/c

Re: [PATCH mlx5-next v1] RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow

2021-02-01 Thread Saeed Mahameed
On Mon, 2021-02-01 at 15:49 -0400, Jason Gunthorpe wrote: > On Sun, Jan 31, 2021 at 03:24:50PM +0200, Yishai Hadas wrote: > > On 1/29/2021 2:23 PM, Saeed Mahameed wrote: > > > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mr.c > > > > b/drivers/net/ethernet/mellanox/mlx5/core/mr.c > > > >

Re: [PATCH mlx5-next v1] RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow

2021-02-01 Thread Jason Gunthorpe
On Sun, Jan 31, 2021 at 03:24:50PM +0200, Yishai Hadas wrote: > On 1/29/2021 2:23 PM, Saeed Mahameed wrote: > > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mr.c > > > b/drivers/net/ethernet/mellanox/mlx5/core/mr.c > > > index 9eb51f06d3ae..50af84e76fb6 100644 > > > +++ b/drivers/net/ethe

Re: [PATCH mlx5-next v1] RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow

2021-01-31 Thread Yishai Hadas
On 1/29/2021 2:23 PM, Saeed Mahameed wrote: diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mr.c b/drivers/net/ethernet/mellanox/mlx5/core/mr.c index 9eb51f06d3ae..50af84e76fb6 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/mr.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/mr.c @@ -56

[PATCH mlx5-next v1] RDMA/mlx5: Cleanup the synchronize_srcu() from the ODP flow

2021-01-27 Thread Leon Romanovsky
From: Yishai Hadas Cleanup the synchronize_srcu() from the ODP flow as it was found to be a very heavy time consumer as part of dereg_mr. For example de-registration of 1 ODP MRs each with size of 2M hugepage took 19.6 sec comparing de-registration of same number of non ODP MRs that took 172