On Tue, Dec 12, 2023 at 01:17:47PM +0800, Baolu Lu wrote:
On 12/11/23 11:24 PM, Jason Gunthorpe wrote:Not without a synchronize_rcu
Also iopf_queue_remove_device() is messed up - it returns an errorYes, agreed.
code but nothing ever does anything with it 🙁 Remove functions like
this should never fail.
Removal should be like I explained earlier:This could be done by
- Disable new PRI reception
rcu_assign_pointer(param->fault_param, NULL);
?
disable new PRI reception should be done by the driver - it should
turn off PRI generation in the IOMMU HW and flush any HW PRI queues.