OSDN Git Service

IB/mlx5: Fix long EEH recover time with NVMe offloads
authorHuy Nguyen <huyn@mellanox.com>
Tue, 18 Dec 2018 12:15:56 +0000 (14:15 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Dec 2018 23:28:47 +0000 (16:28 -0700)
commitbb7e22a8ab00ff9ba911a45ba8784cef9e6d6f7a
treee775d66e849531a5823ed64141d4b30a8a6ea3eb
parent842a9c837e2017127250a93204368f13e660ed9d
IB/mlx5: Fix long EEH recover time with NVMe offloads

On NVMe offloads connection with many IO queues, EEH takes long time to
recover. The culprit is the synchronize_srcu in the destroy_mkey. The
solution is to use synchronize_srcu only for ODP mkey.

Fixes: b4cfe447d47b ("IB/mlx5: Implement on demand paging by adding support for MMU notifiers")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mr.c