From patchwork Tue Jun 7 11:40:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 12871805 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 147D2C433EF for ; Tue, 7 Jun 2022 11:40:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242566AbiFGLkZ (ORCPT ); Tue, 7 Jun 2022 07:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242018AbiFGLkY (ORCPT ); Tue, 7 Jun 2022 07:40:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F6B6A7E05; Tue, 7 Jun 2022 04:40:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 27ACBB81F6D; Tue, 7 Jun 2022 11:40:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42AB6C34114; Tue, 7 Jun 2022 11:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654602020; bh=m7BeAXQ1laCDGCzhtdylfwmmCG2fi+2Glu3szRWrmOw=; h=From:To:Cc:Subject:Date:From; b=S64aGcD2OppNDcUPrt0Dn46vAZOVQ5rLacYwzGG5KB0Oiq3mveBVz633LQa95wbbv EnBkvlTijVKQ4qzEYYzjA9E3bSaVopccKcV1PQdcxqnLL6+Q4Ov91IpU/6ic564+hI 8MmKCGz6xTtMcoYmFT14Yk81USUZ/12XveDd4fCigqCJu7UvnOQKuPhwnIoi1SpToJ TbRNILVcaZJ26E5tL1HUETku9e55djiWOy7Ege2Db2H8T3h+fXRPTjv283be72Whx7 iLgB+x9N3XqEk2HVqE+CMlM+cKLWoBfGBEMuhc2rDPHtHUnbwmCH6MuChKPlkcVoi9 6NEthhB1e/P7g== From: Leon Romanovsky To: Jason Gunthorpe Cc: Leon Romanovsky , Aharon Landau , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Saeed Mahameed Subject: [PATCH rdma-next 0/5] MR cache cleanup Date: Tue, 7 Jun 2022 14:40:10 +0300 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Leon Romanovsky Hi, In this series, Aharon continues to clean mlx5 MR cache logic. Thanks Aharon Landau (5): RDMA/mlx5: Replace ent->lock with xa_lock RDMA/mlx5: Replace cache list with Xarray RDMA/mlx5: Store the number of in_use cache mkeys instead of total_mrs RDMA/mlx5: Store in the cache mkeys instead of mrs RDMA/mlx5: Rename the mkey cache variables and functions drivers/infiniband/hw/mlx5/main.c | 4 +- drivers/infiniband/hw/mlx5/mlx5_ib.h | 61 ++-- drivers/infiniband/hw/mlx5/mr.c | 505 +++++++++++++++------------ drivers/infiniband/hw/mlx5/odp.c | 2 +- include/linux/mlx5/driver.h | 6 +- 5 files changed, 304 insertions(+), 274 deletions(-)