Commit caf8a518 authored by Joerg Roedel's avatar Joerg Roedel

iommu/amd: Don't call mmu_notifer_unregister in __unbind_pasid

This function is called only in the mn_release() path, so
there is no need to unregister the mmu_notifer here.
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Tested-by: default avatarOded Gabbay <Oded.Gabbay@amd.com>
parent ff6d0cce
...@@ -313,8 +313,6 @@ static void __unbind_pasid(struct pasid_state *pasid_state) ...@@ -313,8 +313,6 @@ static void __unbind_pasid(struct pasid_state *pasid_state)
/* Make sure no more pending faults are in the queue */ /* Make sure no more pending faults are in the queue */
flush_workqueue(iommu_wq); flush_workqueue(iommu_wq);
mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm);
put_pasid_state(pasid_state); /* Reference taken in bind() function */ put_pasid_state(pasid_state); /* Reference taken in bind() function */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment