Skip to content

Commit

Permalink
iommu/amd: Don't call mmu_notifer_unregister in __unbind_pasid
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Jul 10, 2014
1 parent ff6d0cc commit caf8a51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/iommu/amd_iommu_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ static void __unbind_pasid(struct pasid_state *pasid_state)
/* Make sure no more pending faults are in the queue */
flush_workqueue(iommu_wq);

mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm);

put_pasid_state(pasid_state); /* Reference taken in bind() function */
}

Expand Down

0 comments on commit caf8a51

Please sign in to comment.