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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 6D189C47088 for ; Wed, 26 May 2021 02:43:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FE0B6143C for ; Wed, 26 May 2021 02:43:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232277AbhEZCpS (ORCPT ); Tue, 25 May 2021 22:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbhEZCpP (ORCPT ); Tue, 25 May 2021 22:45:15 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CDCCC06175F for ; Tue, 25 May 2021 19:43:45 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id b9so15220907ejc.13 for ; Tue, 25 May 2021 19:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cyqKIBrVaRZ0+l7SzJYRtSgO5kugLUClFhe3a16fIks=; b=xKidA34PKHbdo2S/y22PDRHuVMfazORIWEYHJGkmXyiAr04A+1NKfCILQLnwTFsJTw lRVUQruT7CSfwCc2cJ2LKYGi325kEZ4NNyjn0UtAMMopoI0WzAE5ZrPqYsCmv/lbWb0c z7ZqeM601wal6FC3dk9EhBre/t358GYPWlBkbbUdYNaKqlAK5vqVByIYmyXwX/y93vzO bRNWCBb4JkU4DGAkIgbl4WTCvgU7CxcbWXya1+zo+mLJ+4sIWFlH/9XI6s69LnYlT6TH Md+EyrgGTL9No0zpG2C/7ZHuO/606d+nruZSCbn/IOzSAExbb+3m94kMbAuqlPQ0irwx J8oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cyqKIBrVaRZ0+l7SzJYRtSgO5kugLUClFhe3a16fIks=; b=TgbmuhhHA32i6hPZGS6axg6zrDCwrXCM6n8Z0CeiWQGurLgsUfFPgSCS71e2vq0XHS c0RaJdxA17Hhfy+4u7vPDQ1zJ6Afi38WKNN6ipNb6O5sv7M68FLBdwtdYO+s2TGpmFEo Y0HhODZNYPyI7Can06HvdSX23RIXJx+kVCiAG/IhwE3bD2+XGSNWEpOYEpTmZ/dN0y0Z jKxFVu6Hb+tKQ+mUggOPQqL/gwj2XsZQHOwAj8ajvFXbRa6rxNkxlpnoaBdlfDJE2e6y cZM29UtZ8pUVqdLCVCoQR7BsJNXdc1wb9k31WdA4BT2cI1rFW0gKa8M8ka2r9yYganrV 1Vhw== X-Gm-Message-State: AOAM531LrSu+lrS8DzlQ74dmM1GhG8E5cldwOXibOZZH7QnrvQFuuK8X 927Fsr7pOvGa/WsDGYpln4GdxV8pM2smw4Y/wrMR X-Google-Smtp-Source: ABdhPJzi0wHuPmnuk+fERsSUwpHSaQvSPFz85+F584XY7DhSy3CxdOjcgz0J1YNwvp5PC9EH+9a60IN41oTUEUABAxo= X-Received: by 2002:a17:906:456:: with SMTP id e22mr31013766eja.427.1621997023688; Tue, 25 May 2021 19:43:43 -0700 (PDT) MIME-Version: 1.0 References: <20210517095513.850-1-xieyongji@bytedance.com> <20210517095513.850-2-xieyongji@bytedance.com> <6ca337fe-2c8c-95c9-672e-0d4f104f66eb@redhat.com> In-Reply-To: <6ca337fe-2c8c-95c9-672e-0d4f104f66eb@redhat.com> From: Yongji Xie Date: Wed, 26 May 2021 10:43:33 +0800 Message-ID: Subject: Re: Re: [PATCH v7 01/12] iova: Export alloc_iova_fast() To: Jason Wang Cc: "Michael S. Tsirkin" , Stefan Hajnoczi , Stefano Garzarella , Parav Pandit , Christoph Hellwig , Christian Brauner , Randy Dunlap , Matthew Wilcox , Al Viro , Jens Axboe , bcrl@kvack.org, Jonathan Corbet , =?UTF-8?Q?Mika_Penttil=C3=A4?= , Dan Carpenter , joro@8bytes.org, virtualization , netdev@vger.kernel.org, kvm , linux-fsdevel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 10:36 AM Jason Wang wrote: > > > =E5=9C=A8 2021/5/17 =E4=B8=8B=E5=8D=885:55, Xie Yongji =E5=86=99=E9=81=93= : > > Export alloc_iova_fast() so that some modules can use it > > to improve iova allocation efficiency. > > > > Signed-off-by: Xie Yongji > > --- > > drivers/iommu/iova.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c > > index e6e2fa85271c..317eef64ffef 100644 > > --- a/drivers/iommu/iova.c > > +++ b/drivers/iommu/iova.c > > @@ -450,6 +450,7 @@ alloc_iova_fast(struct iova_domain *iovad, unsigned= long size, > > > > return new_iova->pfn_lo; > > } > > +EXPORT_SYMBOL_GPL(alloc_iova_fast); > > > > /** > > * free_iova_fast - free iova pfn range into rcache > > > Interesting, do we need export free_iova_fast() as well? > Oh, yes. I missed this commit 6e1ea50a06 ("iommu: Stop exporting free_iova_fast()"). Will rebase on the newest kernel tree. Thanks, Yongji