iommu/iova: Add locking to Flush-Queues
authorJoerg Roedel <jroedel@suse.de>
Thu, 10 Aug 2017 14:31:17 +0000 (16:31 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 16:23:52 +0000 (18:23 +0200)
commit8109c2a2f8463852dddd6a1c3fcf262047c0c124
treef7f822e45c2a0849ce240c486c58bfb0fe0f6ced
parentfb418dab8a4f01dde0c025d15145c589ec02796b
iommu/iova: Add locking to Flush-Queues

The lock is taken from the same CPU most of the time. But
having it allows to flush the queue also from another CPU if
necessary.

This will be used by a timer to regularily flush any pending
IOVAs from the Flush-Queues.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iova.c
include/linux/iova.h