Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp48070pxf; Tue, 6 Apr 2021 14:38:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3a+b9NpENAWt2vvH9o+ig8gT+AxvuTM0ooxsifvaZQRlrXdFA9/0uaCi1tTfdqcsG0ND9 X-Received: by 2002:a17:906:94d6:: with SMTP id d22mr59834ejy.424.1617745090463; Tue, 06 Apr 2021 14:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617745090; cv=none; d=google.com; s=arc-20160816; b=frMSmQiBAeU5KHh4V5EArMtz4M6hl+dbBsflxMRPGdGPrJqK7TD4zj24jr5xkAzC8F x8CRkfbQMKSeMs/SnCZBd32iDYfWFyc3Zs9OjnxL7LuEUEhtBPmcDxlFcOutvE0h+Al2 p7gkicN9kDIpz5+/Jv4QsKlDZW6AaozXmfAFCV04ICiB+BshFUDZ9O7P4HXRs3hdoKbU t/qA90hhd3rlblc6/vzpf+tmlx0LknY899S73g281eKIdHqfAeYvsxH7Pd05i/wp1Qg3 Fjbf3/OkoIu6wMnTyBQLItXYr2CsAfj8iZU7bLPZsUitJn1UnoKurMVahJpacINLigPA +D+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZoJyMULEii8ksyPjFzylFtwAdXRgLHdKIJxMpp06Z1E=; b=bq/u8DoF+fGwFM/xUv2wwSa8jRCmbbC3O81HYmO/dKr2E6EHDToe8pqtpdDOiOv6kT pyZWBY0jR6gcfjWtsV0J3xUcMwyT+d/apD0Ejo+gbjzprm5joaFD408MUr1Ik3cc2nrx rdoghGl6NGw+GkRPBcXQvHuF4qPU94MNpV9B4Z0Br7UYtvRm9JbnaRLeFRBkXuoq6IEX aZbs7ShQDHmOBLY5EmurmJ4/NnporIqSbqnkesz8TRKXl++BHrIoI/qS9BpEyAPWA3hm oCcSaianWnTzxrYEuShz86rtcQSXddg1kKuc0MO3yZ/B80MYUwyPL4qOfPzb+ifR/VPS zDmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hz9si7228820ejc.465.2021.04.06.14.37.02; Tue, 06 Apr 2021 14:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343978AbhDFMaz (ORCPT + 99 others); Tue, 6 Apr 2021 08:30:55 -0400 Received: from verein.lst.de ([213.95.11.211]:54291 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343946AbhDFMau (ORCPT ); Tue, 6 Apr 2021 08:30:50 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 4387D68B02; Tue, 6 Apr 2021 14:30:35 +0200 (CEST) Date: Tue, 6 Apr 2021 14:30:34 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Leon Romanovsky , Christoph Hellwig , Bart Van Assche , Doug Ledford , Avihai Horon , Adit Ranadive , Anna Schumaker , Ariel Elior , Bernard Metzler , Chuck Lever , "David S. Miller" , Dennis Dalessandro , Devesh Sharma , Faisal Latif , Jack Wang , Jakub Kicinski , "J. Bruce Fields" , Jens Axboe , Karsten Graul , Keith Busch , Lijun Ou , linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Max Gurtovoy , Max Gurtovoy , "Md. Haris Iqbal" , Michael Guralnik , Michal Kalderon , Mike Marciniszyn , Naresh Kumar PBS , netdev@vger.kernel.org, Potnuri Bharat Teja , rds-devel@oss.oracle.com, Sagi Grimberg , samba-technical@lists.samba.org, Santosh Shilimkar , Selvin Xavier , Shiraz Saleem , Somnath Kotur , Sriharsha Basavapatna , Steve French , Trond Myklebust , VMware PV-Drivers , Weihang Li , Yishai Hadas , Zhu Yanjun Subject: Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init() Message-ID: <20210406123034.GA28930@lst.de> References: <20210405052404.213889-1-leon@kernel.org> <20210405052404.213889-2-leon@kernel.org> <20210406052717.GA4835@lst.de> <20210406121312.GK7405@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406121312.GK7405@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Apr 06, 2021 at 09:13:12AM -0300, Jason Gunthorpe wrote: > So we broadly have two choice > 1) Diverge the kernel and user interfaces and make the RDMA drivers > special case all the kernel stuff to force > ACCESS_RELAXED_ORDERING when they are building MRs and processing > FMR WQE's > 2) Keep the two interfaces the same and push the > ACCESS_RELAXED_ORDERING to a couple of places in the ULPs so the > drivers see a consistent API > > They are both poor choices, but I think #2 has a greater chance of > everyone doing their parts correctly. No, 1 is the only sensible choice. The userspace verbs interface is a mess and should not inflict pain on the kernel in any way. We've moved away from a lot of the idiotic "Verbs API" concepts with things like how we handle the global lkey, the new CQ API and the RDMA R/W abstraction and that massively helped the kernel ecosystem.