From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C027C433E0 for ; Sun, 19 Jul 2020 05:22:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E83C207DA for ; Sun, 19 Jul 2020 05:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595136152; bh=IaoFfp0CVX6q3zmBZngpRxM+Awj+hBYH2gsSFPT8Ul4=; h=From:To:Cc:Subject:Date:List-ID:From; b=yp1ZNgkvZBCqOVZhIzhlW5v+JLH/hppnFKaiEfdV47iIfVcxVEpXaOqe6BotEdJ1V 16cylblyTRo+efXSfF7P+cxNvoSItk0hbTAgWcc4LIt6drF1hVPdY92MyOO4Bu0sun 0pWUBy4/yHzVvmYnzee1MuE7cK1FEmCvaOxL7gsE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726067AbgGSFWb (ORCPT ); Sun, 19 Jul 2020 01:22:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgGSFWb (ORCPT ); Sun, 19 Jul 2020 01:22:31 -0400 Received: from localhost (unknown [213.57.247.131]) (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 27F6D2073A; Sun, 19 Jul 2020 05:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595136150; bh=IaoFfp0CVX6q3zmBZngpRxM+Awj+hBYH2gsSFPT8Ul4=; h=From:To:Cc:Subject:Date:From; b=HmL2PMahAt2696yxN53RCkePZrMbf13lxeBih60BMCxOhwcIDSnrVcrQOMJuhsTRf mr0sYhSxINpfVQjkdFgRaUo7g02irpwZmnxq6Yy2RkdIwThlxad5IGBPNVWTdqqg7E pDL6i+ChK8gEomLISia76lLYka+Xc4f6bXxe63pI= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH rdma-next v2 0/2] Align write() and ioctl() paths Date: Sun, 19 Jul 2020 08:22:21 +0300 Message-Id: <20200719052223.75245-1-leon@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Leon Romanovsky Changelog: v2: * Fixed warning reported by kbuild where I wrote same assignment twice. v1: https://lore.kernel.org/lkml/20200716103956.1422139-1-leon@kernel.org * v0 revealed old bug * https://lore.kernel.org/linux-rdma/20200716102059.1420681-1-leon@kernel.org that took a while to find. * create_cq() was rewritten to make sure that uobj is properly * initialized. v0: https://lore.kernel.org/lkml/20200708110554.1270613-1-leon@kernel.org ---------------------------------------------------- Hi, The discussion about RWQ table patch revealed incosistency with use of usecnt, complex unwind flows without any reason and difference between write() and ioctl() paths. This series extends infrastructure to be consistent, reliable and predicable in regards of commit/desotry uobject. Thanks Leon Romanovsky (2): RDMA/core: Align abort/commit object scheme for write() and ioctl() paths RDMA/core: Update write interface to use automatic object lifetime drivers/infiniband/core/uverbs_cmd.c | 312 ++++++------------ drivers/infiniband/core/uverbs_main.c | 4 + .../infiniband/core/uverbs_std_types_device.c | 7 +- include/rdma/uverbs_ioctl.h | 1 + include/rdma/uverbs_std_types.h | 14 + 5 files changed, 118 insertions(+), 220 deletions(-) -- 2.26.2