From patchwork Sun Oct 14 07:17:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10640575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CE99109C for ; Sun, 14 Oct 2018 07:17:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 182FC2A385 for ; Sun, 14 Oct 2018 07:17:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E687C2A3A1; Sun, 14 Oct 2018 07:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A3352A385 for ; Sun, 14 Oct 2018 07:17:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726119AbeJNO5r (ORCPT ); Sun, 14 Oct 2018 10:57:47 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52720 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbeJNO5r (ORCPT ); Sun, 14 Oct 2018 10:57:47 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9E7947H064519; Sun, 14 Oct 2018 07:17:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=gVtsGXi7W/0zvna/0I62sPOfnuCAKTuRX1AooX2Ny20=; b=TMfQnaCnZvmKRIm6qqrx3bSi3PJ0PBigoeVOKdensUi24DYr0AKppFL1yIXrRryFXyHs f7GYNdJNK3Osdb+pNiNDM1K8FuP/IFmfCVByQaNTvp7ryhYSK45b926yY8T4Osqs7COb rHPTMG2StCr1rKZBwWjDlSoBe2oLisTGSYBzZFKrSRe2jDVh0bvgouwNRgwtjD4keJvS zMK1rqFDkjL2eXifjUl1KgHBDSDjrdtqvH1r+7J7aE/F1mEgbKpGmkxnXxcANIjKF16U IM3iGX+fx6BsWULTDXumWqvYfjrijBEy5I8s0oItVFdlCb1EGiw6LOt9RrNQaBpOoEuO Vw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2n384tmf82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 07:17:41 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9E7He0M002979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 07:17:40 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9E7HdqJ024223; Sun, 14 Oct 2018 07:17:39 GMT Received: from localhost.localdomain (/10.175.37.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Oct 2018 07:17:38 +0000 From: Shamir Rabinovitch To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@ziepe.ca, leon@kernel.org, santosh.shilimkar@oracle.com, shamir.rabinovitch@oracle.com Subject: [PATCH v2 0/4] remove ib_pd uobject pointer Date: Sun, 14 Oct 2018 10:17:23 +0300 Message-Id: <20181014071727.2271-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9045 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=465 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810140069 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With earlier two series, - [PATCH 0/3] figure uverbs/kernel ib_pd w/o using ib_pd uobject - [PATCH 0/7] convey ib_ucontext via ib_udata Now we can remove ib_pd uobject pointer. Changelog: v1->v2: * Patch 1: Comments from Jason - Use accessor function rdma_udata_context Shamir Rabinovitch (4): IB/{sw,hw}: ib_pd should not be used to get the ib_ucontext IB/uverbs: uobj_get_obj_read must return ib_uobject IB/uverbs: uobj_put_obj_read must not use ib_x uobject pointer IB/verbs: remove ib_pd uobject pointer drivers/infiniband/core/uverbs_cmd.c | 229 ++++++++++++------ drivers/infiniband/core/verbs.c | 1 - drivers/infiniband/hw/bnxt_re/ib_verbs.c | 8 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 5 +- drivers/infiniband/hw/cxgb4/mem.c | 3 +- drivers/infiniband/hw/cxgb4/qp.c | 4 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 9 +- drivers/infiniband/hw/mlx4/mr.c | 2 +- drivers/infiniband/hw/mlx4/qp.c | 18 +- drivers/infiniband/hw/mlx4/srq.c | 11 +- drivers/infiniband/hw/mlx5/main.c | 1 - drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 +- drivers/infiniband/hw/mlx5/mr.c | 11 +- drivers/infiniband/hw/mlx5/odp.c | 5 +- drivers/infiniband/hw/mlx5/qp.c | 80 +++--- drivers/infiniband/hw/mlx5/srq.c | 19 +- drivers/infiniband/hw/mthca/mthca_dev.h | 3 +- drivers/infiniband/hw/mthca/mthca_provider.c | 14 +- drivers/infiniband/hw/mthca/mthca_srq.c | 39 +-- drivers/infiniband/hw/nes/nes_verbs.c | 19 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- drivers/infiniband/hw/qedr/verbs.c | 8 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 9 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 2 +- drivers/infiniband/sw/rdmavt/mr.c | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 7 +- drivers/infiniband/sw/rdmavt/srq.c | 2 +- drivers/infiniband/sw/rxe/rxe_loc.h | 3 +- drivers/infiniband/sw/rxe/rxe_mr.c | 3 +- drivers/infiniband/sw/rxe/rxe_qp.c | 5 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 4 +- include/rdma/ib_verbs.h | 1 - include/rdma/uverbs_std_types.h | 14 +- 35 files changed, 334 insertions(+), 216 deletions(-)