Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2566321rdb; Mon, 5 Feb 2024 10:17:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmbE8zLYFBfQUzFH58cZ2r5aIDZApwb5kK3wDa3bkIb81ZFwlcPa3nRVoNgmR20fSqJeTY X-Received: by 2002:ac2:5207:0:b0:511:5008:2b94 with SMTP id a7-20020ac25207000000b0051150082b94mr8937lfl.19.1707157058585; Mon, 05 Feb 2024 10:17:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707157058; cv=pass; d=google.com; s=arc-20160816; b=zOPjTrZW7FqdpYl8z5/ry5567sZXKOcZrsKbrieg7WdszG7k6dg8U7m0QAYVEIEwJG GkxumXSyTGyoPQXJ84IV+TjKcudLUkPneLu3rO6uca/AmviOxM/obUGnK/H9LfGmrYXu Jt2/fwG8K7W20c3wKGzqIY83kJIQWNFzPvDvC/EB6ope/AMPiHmXT/DudqkMByJ2eGNH rSlcbRnMm0pZm7YRh/WuLicxcue+mxuSZZ3aAtp+lLjwgsVoguGBVr6eZtKn9z2Er7Dj uXBXngSWIC4CyzAlcqq6utT2AqUaNTIi4zBYBEr3mnYesS0+aXX5rDatmtNCddi0hr95 Latg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=cX9WAPSzH4fqkr2cx56EeyUyPmftS4JQYp9iTqHs4jU=; fh=SckjK+EiHwCVhDCFBIXPKBgP8Qv8pcazlwCCLXcTwjk=; b=zhp7etxcjkLPpkkaCPq6IkuKa1ArRnjCwvvnQIYW3XIot04i/qo8u5dYcg8ldLBgk5 8NRalcDfoG0ZKi0HAMVuB7KGv7050Ofy0G0yA0Uv5Jj5h9bNPimUIxIF6HgAfyvsaTbA PB0IHpVwPulK3Bu6UFQlUI5x7pWn5zCJnLg00ZMubW8NA8Ki4EHrhegPT3noH5OlVc65 u26+xnb9QU6PzhWSgr5TEv6aKVDRa+Qp/fRrpWlcHEYTV5Q8J9JGjRMPb9Vxtbyw4m9V emGpJJh8maw3zgUYdIL0DNy8mRwnStE8NzDL0mQK7Dl3ION19r5D6rhAJEACHJA8uOL2 nnuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JuRQ3FRA; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-53194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCUCx066MRgyRvzpmVfcEjRFPFwGw9hhfGQJ+UPEed6fNDRQcWhMD8oWXFOimNzx2llbhiui4MRZe35l3fbDeC0lWzqD7B62INOCndHKPQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r22-20020a170906351600b00a3613fa2b68si91661eja.897.2024.02.05.10.17.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:17:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JuRQ3FRA; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-53194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 500C01F23BB7 for ; Mon, 5 Feb 2024 18:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADC6E47F74; Mon, 5 Feb 2024 18:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JuRQ3FRA" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 826814176E for ; Mon, 5 Feb 2024 18:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707157041; cv=none; b=OkevZWXXdcgdA2CXKiPr82tkRIZY8iNCPoIG5psUbuqS5YG0MJssOpD8NN0EuGX0JFZ0brLq8NUKWwoWdSkOSIVHbXuYiRa4m1QL9d2XaezlvWEcR2S8tj+wvNmq6mbCrVFeA6xP0i6pq8KyAAASS2yA2O4MmYVm1qho7aJg9PE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707157041; c=relaxed/simple; bh=LhCS1ICE+lBvaO8YlYfviwFJHIwlCBRFxZftdvpWuMY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=tvl7JbbF8E1eklyCT/UtuYuyWAvV9MOwU5TNFPpussxDwU+yFxz8QuUHssBh5bWzEEz5d3tXgiZzADGCJ276yrrfn0ozBhVVTfOJT8G+hCriqzpsMj6FnnDyijyNjmokvOlqoDEI/hpBjm3EbRxyd7YKwuVNqQBLUbcLNrIsZQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JuRQ3FRA; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d93b982761so33405ad.0 for ; Mon, 05 Feb 2024 10:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707157040; x=1707761840; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=cX9WAPSzH4fqkr2cx56EeyUyPmftS4JQYp9iTqHs4jU=; b=JuRQ3FRAO5KqkFSyNJ57C7L+keeBWSt180ENAKkTF5zE+hNHvZ4dRLm2t2M005zKm7 W7oaghoG8su8AJzsZuVMA/0n18Mm3ddraXGEoqH4BINHoz2DWb3jXIljeygm387K7JWe eXgmyTUcYoi+A0zThyw9ynjDnYNFRSKPyeWCukKaAfbnQLIv+vN6nkZ3IH0ux1+ALWwr luOJwdvlsdB7WnjIECMQ2d2PedtjzZhCItNBeuhE2dAOu5FEHVQjU51l1opnDnCLvBpJ S/mg80CSE8YkfM26yVlq3JMDuKJXqB1M5l8G1t3w9Xw14+RNOFiV9sL6DJtKy6uoSdC6 sXzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707157040; x=1707761840; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cX9WAPSzH4fqkr2cx56EeyUyPmftS4JQYp9iTqHs4jU=; b=R2MKrlEItw4UrvOtOz+lJphXF03gYXF76jvT8K9LuZhf02UNtvS49Z2TL/A6yeMqR7 RLa+ayfxzGLR3N7caHbjOMlHydD4SWiTSHweGVFlpA8jDvlCjnaA5HaVnmSHkuHLeqjz 0UauY9xmFRktrLhdyPCgphIke9EgRVIGx3RMsLZGTSJ6E3wca6/RiviswkypmEQOLhkC jWGIUZ1sw1cq1+NOs7wvPfsi/0f4XXOteGpJznWr/R4wHZ0dsBfi+1/vJDtCa6Zg+XiR /qNVmRUuRYozj2ls6wLRpD3/qIRWpevhwBQuVkzU7TbxM1czGGjgJW0E4KTwYZAKwOPc 7v6g== X-Gm-Message-State: AOJu0Yw98a8zTPfn1m0QltmfPzg8X844ENbJIf7bjGFIglBDbbDCLRUq p3mLgvDbdztlXOmGDqm7hMAL3xiRIhGJlndSd4ftcjNzfGQbUrEo+hAT0csC9A== X-Received: by 2002:a17:902:d4c5:b0:1d9:3524:3db2 with SMTP id o5-20020a170902d4c500b001d935243db2mr18895plg.11.1707157039512; Mon, 05 Feb 2024 10:17:19 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXsxPxLfa2k54v4x5TlGXwZXe1WxnrM5K3MasLtL0cn2JrO90COHkhNgnl0vzB4rw8viOinysHy90WT9cQUFcQ6O9UaCggIf1lU7qbfzQDBZr030iGczwa7K6KT+uEu65oRoPDEplBeOa5TyGGVStwXwXfNYunUe9lZ6ERNKkEcf+gIeacpu8Vp/L6J9PPeAzyzvPUatk53kMeBle07NNZjUZpDKOKwY4hBjLe+1Z25eVfNgftx69+ucJk8fRrb82c/zsKOFSYIV5F4cjUCdfSemDq6 Received: from [2620:0:1008:15:1e99:232a:d721:3dff] ([2620:0:1008:15:1e99:232a:d721:3dff]) by smtp.gmail.com with ESMTPSA id ch11-20020a17090af40b00b00296a265acbbsm2117063pjb.25.2024.02.05.10.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:17:19 -0800 (PST) Date: Mon, 5 Feb 2024 10:17:18 -0800 (PST) From: David Rientjes To: Robin Murphy cc: joro@8bytes.org, will@kernel.org, pasha.tatashin@soleen.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, yosryahmed@google.com, john.g.garry@oracle.com Subject: Re: [PATCH v3 2/3] iommu/iova: Reorganise some code In-Reply-To: Message-ID: <0ffc92e6-9640-293b-8fbf-b2e45badad91@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 5 Feb 2024, Robin Murphy wrote: > The iova_cache_{get,put}() calls really represent top-level lifecycle > management for the whole IOVA library, so it's long been rather > confusing to have them buried right in the middle of the allocator > implementation details. Move them to a more expected position at the end > of the file, where it will then also be easier to expand them. With > this, we can also move the rcache hotplug handler (plus another stray > function) into the rcache portion of the file. > > Signed-off-by: Robin Murphy Acked-by: David Rientjes