OSDN Git Service

iommu/amd: Don't hold a reference to task_struct
authorJoerg Roedel <jroedel@suse.de>
Wed, 9 Jul 2014 15:56:43 +0000 (17:56 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jul 2014 13:36:58 +0000 (15:36 +0200)
commitdba3838d7af38b15bcc8ff3437362d449408b547
tree6488d8ec212077c76113b24e1bf9f51d8f119dc4
parentf0aac63b873b354c1a16bef03563cbc3941ce7ad
iommu/amd: Don't hold a reference to task_struct

Since we are only caring about the lifetime of the mm_struct
and not the task we can't safely keep a reference to it. The
reference is also not needed anymore, so remove that code
entirely.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Oded Gabbay <Oded.Gabbay@amd.com>
drivers/iommu/amd_iommu_v2.c