Re: [PATCH v3 10/11] iommu/vt-d: Use device_domain_lock accurately

2022-07-02 Thread Baolu Lu
On 2022/7/1 16:15, Tian, Kevin wrote: From: Lu Baolu Sent: Wednesday, June 29, 2022 3:47 PM + spin_lock_irqsave(_domain_lock, flags); list_for_each_entry(info, >devices, link) { - if (!info->dev) - continue; - suppose you can replace all

Re: [PATCH v3 10/11] iommu/vt-d: Use device_domain_lock accurately

2022-07-01 Thread Baolu Lu
On 2022/7/1 16:15, Tian, Kevin wrote: From: Lu Baolu Sent: Wednesday, June 29, 2022 3:47 PM + spin_lock_irqsave(_domain_lock, flags); list_for_each_entry(info, >devices, link) { - if (!info->dev) - continue; - suppose you can replace all

RE: [PATCH v3 10/11] iommu/vt-d: Use device_domain_lock accurately

2022-07-01 Thread Tian, Kevin
> From: Lu Baolu > Sent: Wednesday, June 29, 2022 3:47 PM > > + spin_lock_irqsave(_domain_lock, flags); > list_for_each_entry(info, >devices, link) { > - if (!info->dev) > - continue; > - suppose you can replace all spin_lock_irqsave() with spin_lock()