Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp828025pxb; Tue, 8 Feb 2022 03:30:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjDGkKwlZ8brr4xhgGAVFzvx/VFrpjJD0yXkQaeF8LxY83zmP5GIvZMGdq4hMxmqcW03S3 X-Received: by 2002:a05:6402:344d:: with SMTP id l13mr4109288edc.448.1644319818293; Tue, 08 Feb 2022 03:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644319818; cv=none; d=google.com; s=arc-20160816; b=hnHsUGtKU/dlM1xYiCPBD/ANOD1T9pwxd0Z6rMMkK74gLq60mlUM3V4/1ybZDCEoUs u5Nr/Wbrub0LUBJNdkz6NdbwO/33lZMKhLox7nACYqiyvJ4uv6JWs6YCffd7XH9be2Ma /MTIYDPHxZ0/MVl/6duP4xJKKRbSrOXrjpEyAWNqsfSKvjTE08rCUZYC15tPwUn6xUwE hhYs8e9m4X6WOd43RxtPPuMpBBj5Ax7WJcPY0YubOFuGVuyxJufOz6mK5lbRsgYw2F6K ef4UvWf3o60u83dNgwNx+VvVVkPt7ZMkPdLrIEvfdBfihvc1WNdMXKF2b40fNJWjEhfi /k9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=VkjiLmwXVCM51yPN7gr5G2qjVRMa0oMW3lq670n9ie4=; b=VeX7ZlftBcYFLL7/PXKXVwrtQJKSy+o2BGGAH+9zkwfks0bsLjRnRYiGZE0JER4mOj yAVss4kKa9exM/Od0MEZ0gLRQ5BBnsuyRIGda+Boh6vc7xNInW7xZmDe9v1j+gaqRkfZ XPpfW5yeR/ocxPzi6p+CN1LPhZqfw0val37AQ7GVoK/halGnCHb6o7hHKARtC7detxw+ cYnqdfK0nxMUKq9RFUZel0hg5Q/1cmHgoieEVP+0XycDGTgurEuwOp04XKZQOTxP7SgF 7ZUsFw9XPHee3sraPbgplYRNj+v1wRLd1GUPR4P3JQYVnjUbch5l30L3EMNNcux5TplT JECQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23si8008743ejj.312.2022.02.08.03.29.52; Tue, 08 Feb 2022 03:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235037AbiBGLEf (ORCPT + 99 others); Mon, 7 Feb 2022 06:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352978AbiBGK5S (ORCPT ); Mon, 7 Feb 2022 05:57:18 -0500 X-Greylist: delayed 1026 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Feb 2022 02:57:17 PST Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77EE6C043181 for ; Mon, 7 Feb 2022 02:57:17 -0800 (PST) Received: from fraeml708-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JsjGv00YNz67yfJ; Mon, 7 Feb 2022 18:36:06 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml708-chm.china.huawei.com (10.206.15.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 7 Feb 2022 11:40:08 +0100 Received: from [10.47.86.164] (10.47.86.164) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 7 Feb 2022 10:40:02 +0000 Message-ID: Date: Mon, 7 Feb 2022 10:39:58 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v1 04/10] iommu/vt-d: Remove iova_cache_get/put() To: Lu Baolu , Joerg Roedel , "Kevin Tian" , Ashok Raj , Liu Yi L , Jacob Pan CC: , , "Jason Gunthorpe" , Robin Murphy , "Christoph Hellwig" References: <20220207064142.1092846-1-baolu.lu@linux.intel.com> <20220207064142.1092846-5-baolu.lu@linux.intel.com> From: John Garry In-Reply-To: <20220207064142.1092846-5-baolu.lu@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.86.164] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2022 06:41, Lu Baolu wrote: > diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c > index 583ec0fa4ac1..e8d58654361c 100644 > --- a/drivers/iommu/intel/iommu.c > +++ b/drivers/iommu/intel/iommu.c > @@ -3348,9 +3348,6 @@ static inline int iommu_devinfo_cache_init(void) > static int __init iommu_init_mempool(void) > { > int ret; > - ret = iova_cache_get(); > - if (ret) > - return ret; > > ret = iommu_domain_cache_init(); > if (ret) > @@ -3362,7 +3359,6 @@ static int __init iommu_init_mempool(void) > > kmem_cache_destroy(iommu_domain_cache); > domain_error: nit: is this label still really required? only failures in iommu_domain_cache_init() jump to it, and that can return directly now. Thanks, John > - iova_cache_put();