From patchwork Thu Feb 27 12:33:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 1245808 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=ID1LpEzz; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 48SsYJ0sfyz9sRQ for ; Thu, 27 Feb 2020 23:34:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729057AbgB0MeK (ORCPT ); Thu, 27 Feb 2020 07:34:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:35142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728964AbgB0MeJ (ORCPT ); Thu, 27 Feb 2020 07:34:09 -0500 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0DBD324697; Thu, 27 Feb 2020 12:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582806848; bh=NrUTIwnVOy1ogNwi+HK0bIcOkesiKOj7zu/rSVAbKC8=; h=From:To:Cc:Subject:Date:From; b=ID1LpEzzHMw29n6x79/trA41j7p349LS3KzRTSdVxWGnLUc23A4wp+dvgzGpJrxE5 hIyd57QKcMEVBlSLALsF2/ZN6+wWEhsohpk3HnOCoe5b3IliV7dMlihQ3az5RSOkIK S3Z+SOrnzPFZ7B1BQ1VcHIIRbnc143Gbg/UtASWU= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , Artemy Kovalyov , Eli Cohen , Jack Morgenstein , linux-rdma@vger.kernel.org, Michael Guralnik , netdev@vger.kernel.org, Or Gerlitz , Saeed Mahameed , Yishai Hadas Subject: [PATCH rdma-next 0/9] MR cache fixes and refactoring Date: Thu, 27 Feb 2020 14:33:51 +0200 Message-Id: <20200227123400.97758-1-leon@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leon Romanovsky Hi, This series fixes various corner cases in the mlx5_ib MR cache implementation, see specific commit messages for more information. Thanks Jason Gunthorpe (8): RDMA/mlx5: Rename the tracking variables for the MR cache RDMA/mlx5: Simplify how the MR cache bucket is located RDMA/mlx5: Always remove MRs from the cache before destroying them RDMA/mlx5: Fix MR cache size and limit debugfs RDMA/mlx5: Lock access to ent->available_mrs/limit when doing queue_work RDMA/mlx5: Fix locking in MR cache work queue RDMA/mlx5: Revise how the hysteresis scheme works for cache filling RDMA/mlx5: Allow MRs to be created in the cache synchronously Michael Guralnik (1): RDMA/mlx5: Move asynchronous mkey creation to mlx5_ib drivers/infiniband/hw/mlx5/mlx5_ib.h | 33 +- drivers/infiniband/hw/mlx5/mr.c | 642 +++++++++++-------- drivers/infiniband/hw/mlx5/odp.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/mr.c | 22 +- include/linux/mlx5/driver.h | 6 - 5 files changed, 404 insertions(+), 301 deletions(-) --- 2.24.1