From: Joerg Roedel Date: Tue, 8 Jul 2014 10:53:32 +0000 (+0200) Subject: iommu/amd: Don't call mmu_notifer_unregister in __unbind_pasid X-Git-Tag: v3.17-rc1~115^2^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=caf8a518d73e71c4073ef1bd5c369e80d27ebf2c;p=karo-tx-linux.git 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 Tested-by: Oded Gabbay --- 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) /* 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 */ }