On Mon, Jun 30, 2014 at 02:41:24PM +0000, Gabbay, Oded wrote: > I did face some problems regarding the amd IOMMU v2 driver, which > changed its behavior (see commit "iommu/amd: Implement > mmu_notifier_release call-back") to use mmu_notifier_release and did > some "bad things" inside that > notifier (primarily, but not only, deleting the object which held the > mmu_notifier object itself, which you mustn't do because of the > locking). > > I'm thinking of changing that driver's behavior to use this new > mechanism instead of using mmu_notifier_release. Does that seem > acceptable ? Another solution will be to add a new mmu_notifier call, > but we already ruled that out ;)
The mmu_notifier_release() function is exactly what this new notifier aims to do. Unless there is a very compelling reason to duplicate this functionality I stronly NACK this approach. Joerg _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu