aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2014-07-08 06:53:32 -0400
committerJoerg Roedel <jroedel@suse.de>2014-07-10 09:36:22 -0400
commitcaf8a518d73e71c4073ef1bd5c369e80d27ebf2c (patch)
tree602449affef02f42bd25d8d437cd0d9d5f405540
parentff6d0cce38aa2d1516222700dd413b33f0701504 (diff)
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: Joerg Roedel <jroedel@suse.de> Tested-by: Oded Gabbay <Oded.Gabbay@amd.com>
-rw-r--r--drivers/iommu/amd_iommu_v2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c
index 0e29f6f66e83..1fdd22c3bc04 100644
--- a/drivers/iommu/amd_iommu_v2.c
+++ b/drivers/iommu/amd_iommu_v2.c
@@ -313,8 +313,6 @@ static void __unbind_pasid(struct pasid_state *pasid_state)
313 /* Make sure no more pending faults are in the queue */ 313 /* Make sure no more pending faults are in the queue */
314 flush_workqueue(iommu_wq); 314 flush_workqueue(iommu_wq);
315 315
316 mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm);
317
318 put_pasid_state(pasid_state); /* Reference taken in bind() function */ 316 put_pasid_state(pasid_state); /* Reference taken in bind() function */
319} 317}
320 318