Files
linux-stable-mirror/include/linux
Jean-Philippe Brucker cb4789b0d1 iommu/ioasid: Add ioasid references
Let IOASID users take references to existing ioasids with ioasid_get().
ioasid_put() drops a reference and only frees the ioasid when its
reference number is zero. It returns true if the ioasid was freed.
For drivers that don't call ioasid_get(), ioasid_put() is the same as
ioasid_free().

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20201106155048.997886-2-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
2020-11-23 14:16:55 +00:00
..
2020-10-28 13:18:56 +01:00
2020-11-23 14:16:55 +00:00
2020-10-28 13:42:36 -04:00
2020-05-08 18:18:11 +01:00
2019-02-08 15:02:49 -08:00
2020-10-28 11:41:15 -06:00
2020-10-18 09:27:10 -07:00
2020-11-06 10:05:18 -08:00
2020-10-18 09:27:10 -07:00