iommu/iova: Use raw_cpu_ptr() instead of get_cpu_ptr() for ->fq
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 21 Sep 2017 15:21:40 +0000 (17:21 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 18:24:35 +0000 (11:24 -0700)
commit94e2cc4dba39efbb63e84cd4f7243627c16ceac5
tree175fe887e65dc3029129904b2130ace1b23ebb70
parenta593472591a5cf2d91244bc3f319c9dd91119343
iommu/iova: Use raw_cpu_ptr() instead of get_cpu_ptr() for ->fq

get_cpu_ptr() disabled preemption and returns the ->fq object of the
current CPU. raw_cpu_ptr() does the same except that it not disable
preemption which means the scheduler can move it to another CPU after it
obtained the per-CPU object.
In this case this is not bad because the data structure itself is
protected with a spin_lock. This change shouldn't matter however on RT
it does because the sleeping lock can't be accessed with disabled
preemption.

Cc: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux-foundation.org
Reported-by: vinadhy@gmail.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/iova.c