Messages in this thread | | | Date | Mon, 6 Dec 2021 12:40:11 +0100 | From | Joerg Roedel <> | Subject | Re: [PATCH 1/1] iommu: Extend mutex lock scope in iommu_probe_device() |
| |
On Mon, Nov 08, 2021 at 02:13:49PM +0800, Lu Baolu wrote: > Extend the scope of holding group->mutex so that it can cover the default > domain check/attachment and direct mappings of reserved regions. > > Cc: Ashish Mhetre <amhetre@nvidia.com> > Fixes: 211ff31b3d33b ("iommu: Fix race condition during default domain allocation") > Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> > --- > drivers/iommu/iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks. The __iommu_attach_device() function is called under group->mutex everywhere else, so it makes here too.
Regards,
Joerg
| |