iommu/iova: Consolidate flush queue code
authorRobin Murphy <robin.murphy@arm.com>
Fri, 17 Dec 2021 15:31:01 +0000 (15:31 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 20 Dec 2021 08:03:05 +0000 (09:03 +0100)
commitea4d71bb5e3fc5c2b7b856bc7506439298f47a23
tree8f618ab07ff9f297918ae0066c2a5c74253b50f5
parent87f60cc65d24939353b40aa1d9297fea080cdf8d
iommu/iova: Consolidate flush queue code

Squash and simplify some of the freeing code, and move the init
and free routines down into the rest of the flush queue code to
obviate the forward declarations.

Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/b0dd4565e6646b6489599d7a1eaa362c75f53c95.1639753638.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iova.c