From: Lu Baolu <baolu.lu@linux.intel.com> To: Christoph Hellwig <hch@lst.de> Cc: baolu.lu@linux.intel.com, David Woodhouse <dwmw2@infradead.org>, Joerg Roedel <joro@8bytes.org>, ashok.raj@intel.com, jacob.jun.pan@intel.com, kevin.tian@intel.com, Robin Murphy <robin.murphy@arm.com>, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan <jacob.jun.pan@linux.intel.com> Subject: Re: [PATCH 1/3] iommu/vt-d: Refactor find_domain() helper Date: Thu, 1 Aug 2019 14:20:07 +0800 [thread overview] Message-ID: <40f3a736-0a96-0491-61ad-0ddf03612d91@linux.intel.com> (raw) In-Reply-To: <20190801061021.GA14955@lst.de> Hi Christoph, On 8/1/19 2:10 PM, Christoph Hellwig wrote: > On Thu, Aug 01, 2019 at 02:01:54PM +0800, Lu Baolu wrote: >> + /* No lock here, assumes no domain exit in normal case */ > > s/exit/exists/ ? This comment is just moved from one place to another in this patch. "no domain exit" means "the domain isn't freed". (my understand) > >> + info = dev->archdata.iommu; >> + if (likely(info)) >> + return info->domain; > > But then again the likely would be odd. > Normally there's a domain for a device (default domain or isolation domain for assignment cases). Best regards, Baolu
next prev parent reply other threads:[~2019-08-01 6:20 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-08-01 6:01 [PATCH 0/3] iommu/vtd: Per device dma ops Lu Baolu 2019-08-01 6:01 ` [PATCH 1/3] iommu/vt-d: Refactor find_domain() helper Lu Baolu 2019-08-01 6:10 ` Christoph Hellwig 2019-08-01 6:20 ` Lu Baolu [this message] 2019-08-01 14:09 ` Christoph Hellwig 2019-08-02 2:06 ` Lu Baolu 2019-08-01 6:01 ` [PATCH 2/3] iommu/vt-d: Apply per-device dma_ops Lu Baolu 2019-08-06 6:43 ` Christoph Hellwig 2019-08-07 3:06 ` Lu Baolu 2019-08-13 7:38 ` Lu Baolu 2019-08-01 6:01 ` [PATCH 3/3] iommu/vt-d: Cleanup after using per-device dma ops Lu Baolu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=40f3a736-0a96-0491-61ad-0ddf03612d91@linux.intel.com \ --to=baolu.lu@linux.intel.com \ --cc=ashok.raj@intel.com \ --cc=dwmw2@infradead.org \ --cc=hch@lst.de \ --cc=iommu@lists.linux-foundation.org \ --cc=jacob.jun.pan@intel.com \ --cc=jacob.jun.pan@linux.intel.com \ --cc=joro@8bytes.org \ --cc=kevin.tian@intel.com \ --cc=linux-kernel@vger.kernel.org \ --cc=robin.murphy@arm.com \ --subject='Re: [PATCH 1/3] iommu/vt-d: Refactor find_domain() helper' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).