iommu/vt-d: Remove unnecessary checks in iopf disabling path
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 13 Apr 2023 04:06:34 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:48 +0000 (12:05 +0200)
commit7b8aa998d627afeef576ab61bf8e286f56439bb2
tree1aa9df1fd20fa92d2abfa8c52a960dfdc0ba3561
parentfbcde5bb92bd3d299688d615dce26c59d3f63694
iommu/vt-d: Remove unnecessary checks in iopf disabling path

iommu_unregister_device_fault_handler() and iopf_queue_remove_device()
are called after device has stopped issuing new page falut requests and
all outstanding page requests have been drained. They should never fail.
Trigger a warning if it happens unfortunately.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230324120234.313643-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c