]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Avoid using idr_for_each_entry()
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 14 Jul 2018 07:46:55 +0000 (15:46 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 20 Jul 2018 12:44:23 +0000 (14:44 +0200)
commit650040d3b1aa21018c206804ede9abaa4efe154e
tree427a95318d407d446d98ede3381c794a4a29599b
parent561e87a5dddc1d06f99f84776dbd8757cd7c2d74
iommu/vt-d: Avoid using idr_for_each_entry()

idr_for_each_entry() is used to iteratte over idr elements
of a given type. It isn't suitable for the globle pasid idr
since the pasid idr consumer could specify different types
of pointers to bind with a pasid.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Liu Yi L <yi.l.liu@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
include/linux/intel-iommu.h