[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190527140514.GE8420@8bytes.org>
Date: Mon, 27 May 2019 16:05:15 +0200
From: Joerg Roedel <joro@...tes.org>
To: Lukasz Odzioba <lukasz.odzioba@...el.com>
Cc: linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org,
dwmw2@...radead.org, grzegorz.andrejczuk@...el.com
Subject: Re: [PATCH 1/1] iommu/vt-d: Remove unnecessary rcu_read_locks
On Mon, May 20, 2019 at 03:41:28PM +0200, Lukasz Odzioba wrote:
> We use RCU's for rarely updated lists like iommus, rmrr, atsr units.
>
> I'm not sure why domain_remove_dev_info() in domain_exit() was surrounded
> by rcu_read_lock. Lock was present before refactoring in d160aca527,
> but it was related to rcu list, not domain_remove_dev_info function.
>
> dmar_remove_one_dev_info() doesn't touch any of those lists, so it doesn't
> require a lock. In fact it is called 6 times without it anyway.
>
> Fixes: d160aca5276d ("iommu/vt-d: Unify domain->iommu attach/detachment")
>
> Signed-off-by: Lukasz Odzioba <lukasz.odzioba@...el.com>
Applied, thanks.
Powered by blists - more mailing lists