Re: [PATCH 1/3] iommu/vt-d: Refactor find_domain() helper

From: Christoph Hellwig
Date: Thu Aug 01 2019 - 02:10:35 EST


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/ ?

> + info = dev->archdata.iommu;
> + if (likely(info))
> + return info->domain;

But then again the likely would be odd.