[RFC,02/12] iommu/vt-d: Remove initialization for dynamically heap-allocated rcu_head
Message ID | 20231017032045.114868-3-tina.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3872353vqb; Mon, 16 Oct 2023 20:22:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcLzIVjkfjyC6Rw0pps6IjABhNvumAiUR0uAwhUQMez64F4/hvk+FItivgw7T/eY/Zsce6 X-Received: by 2002:a05:6a20:d80d:b0:163:ab09:193e with SMTP id iv13-20020a056a20d80d00b00163ab09193emr1005418pzb.1.1697512922247; Mon, 16 Oct 2023 20:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697512922; cv=none; d=google.com; s=arc-20160816; b=T6gb9cT3rqWu4Du4AGo7hz3gjYJKyJIYEVEju/h5OX5HjnrEfhOWycGNtnq1Xto6i0 C6kVDpsqEYCLmv7yGVAIHFdpvECT2NW5kos1pCb+PhKsQELCKKP1sQUsRXTSYWQGpq80 2Oh/qNZPukXLNTlH2IxbxYkzEAyU01aMtoDlOMzeimJhVVzIiIar+JupCezjLvRaa1Mu fnWbIWccqQnQp8g4SeQJnZ9+xyLev5tl59Z9ZFz8N6Rf4P3JuK18VZPSve14ERVgjHOm dVjHTh1idOrBdo7cAW1KLzxkucQwMkr/teoyqWHEjEodIKy6NIJec849PcPmAfKwNbqY a6LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bm4E2F+HPGt4d2ZwnrFX6cwrQPeq2DRdr3XwJ+SIp4s=; fh=R49q8kPD/ziIvsyYshS2LccDCxkbN9TSdzSyy3EleF0=; b=Jkms5ppFytmh5JYmrvH7O3x5n+NNPlmCRV0ALnAb3+ko0pLtwowT45R8IeQqqo8Z2E tBsEM9ZTClmnADqo9IJPX0QfB+tTTWPofUid8ZgMMSG6Lvs6T5H5qktrnog9L6uxkZ5Y A36yX7BgbZSq3vkgBoBDKVZF6vFGKj3S9/sYaCHGxjoEZY0+Nj7TMd50eJ4pLeaBg7Ka e4zxXn65OXPfbqQO6D6mRVwJ+JR0VLNqgLRVcWxT+chDQYMKEdJkyVFYoEEc5iAb04Vs Lh+69JAcJAx82A9NHbFKA43fXbfAU5fEL6jGvbSdNDFE1QO3AxBYhvwO4Wt7Dw2MMcPH 0EaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ox4RZBJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i6-20020a170902c94600b001c9c579d28bsi856574pla.247.2023.10.16.20.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 20:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ox4RZBJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D01CD80A801D; Mon, 16 Oct 2023 20:21:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234381AbjJQDVX (ORCPT <rfc822;hjfbswb@gmail.com> + 19 others); Mon, 16 Oct 2023 23:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbjJQDVP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Oct 2023 23:21:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9AE95; Mon, 16 Oct 2023 20:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697512873; x=1729048873; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hAomhrHNxujB2483v7YfRvTz4s8XblPgphanR++fg0E=; b=Ox4RZBJvghliKb3wVeYeNk9szbq8Usrm/FVbTsbpZT5hka1wYC4WNxkG t3ZXaPeHdKU1QeiWwU1SHx0HsBoVXYXLr0irNA1lS5+E/dPe4A52cm+uw G8C+phaukxFiS5gsj3TQw/2H0+awsaGoZqIcl4Dxcpi8NKo4eDI7YDXPo TEJbIJm017Tz28TCslPvwDBld1OOVTZoA16z7ggjk9kqDfth513TI05CZ 7V/iCbRmwbKEe/DKbN3No8Leg96JM2zvKZffDAz+sj58YnEM6Kj2hYBUp cMTMQZiCr7ohXIE6J+8KD1MSo3QDjEjGrrCEBtMwruMtntFKyk8WhEvTv g==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="389560788" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="389560788" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 20:21:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="826269945" X-IronPort-AV: E=Sophos;i="6.03,231,1694761200"; d="scan'208";a="826269945" Received: from sqa-gate.sh.intel.com (HELO spr-2s5.tsp.org) ([10.239.48.212]) by fmsmga004.fm.intel.com with ESMTP; 16 Oct 2023 20:21:11 -0700 From: Tina Zhang <tina.zhang@intel.com> To: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: David Woodhouse <dwmw2@infradead.org>, Lu Baolu <baolu.lu@linux.intel.com>, Joerg Roedel <joro@8bytes.org>, Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Tina Zhang <tina.zhang@intel.com> Subject: [RFC PATCH 02/12] iommu/vt-d: Remove initialization for dynamically heap-allocated rcu_head Date: Tue, 17 Oct 2023 11:20:34 +0800 Message-Id: <20231017032045.114868-3-tina.zhang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231017032045.114868-1-tina.zhang@intel.com> References: <20231017032045.114868-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 16 Oct 2023 20:21:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779971310341500053 X-GMAIL-MSGID: 1779971310341500053 |
Series |
iommu/vt-d: Remove superfluous IOMMU IOTLB invalidations
|
|
Commit Message
Zhang, Tina
Oct. 17, 2023, 3:20 a.m. UTC
The rcu_head structures allocated dynamically in the heap don't need any
initialization. Therefore, remove the init_rcu_head().
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
---
drivers/iommu/intel/svm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iommu/intel/svm.c b/drivers/iommu/intel/svm.c index 9bf79cf88aec..f9b1f13bd068 100644 --- a/drivers/iommu/intel/svm.c +++ b/drivers/iommu/intel/svm.c @@ -334,7 +334,6 @@ static int intel_svm_bind_mm(struct intel_iommu *iommu, struct device *dev, sdev->iommu = iommu; sdev->did = FLPT_DEFAULT_DID; sdev->sid = PCI_DEVID(info->bus, info->devfn); - init_rcu_head(&sdev->rcu); if (info->ats_enabled) { sdev->qdep = info->ats_qdep; if (sdev->qdep >= QI_DEV_EIOTLB_MAX_INVS)