Re: [virtio-dev] [RFC PATCH v2 1/5] iommu: Add virtio-iommu driver

From
Jean-Philippe Brucker <hidden>
Date
2017-11-29 15:17:40
On 17/11/17 18:52, Jean-Philippe Brucker wrote:
[...]
quoted hunk
+struct viommu_domain {
+	struct iommu_domain		domain;
+	struct viommu_dev		*viommu;
+	struct mutex			mutex;
+	unsigned int			id;
+
+	spinlock_t			mappings_lock;
+	struct rb_root_cached		mappings;
+
+	/* Number of endpoints attached to this domain */
+	refcount_t			endpoints;
Refcount_t is the wrong tool for this, I went back to an unsigned int (and
rebased onto v4.15-rc1), on branch virtio-iommu/base.

Thanks,
Jean
Thread (1 message) 1 message, 1 author, last reply 2017-11-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help