diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-08 18:23:30 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-15 11:17:02 +0400 |
commit | 3d39cecc4841e8d4c4abdb401d10180f5faaded0 (patch) | |
tree | 8aa51bc0e644752384c2734ecc25ea851dc919f7 /include/linux | |
parent | 147202aa772329a02c6e80bc2b7a6b8dd3deac0b (diff) | |
download | linux-3d39cecc4841e8d4c4abdb401d10180f5faaded0.tar.xz |
intel-iommu: Remove superfluous iova_alloc_lock from IOVA code
We only ever obtain this lock immediately before the iova_rbtree_lock,
and release it immediately after the iova_rbtree_lock. So ditch it and
just use iova_rbtree_lock.
[v2: Remove the lockdep bits this time too]
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/iova.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h index 228f6c94b69c..76a0759e88ec 100644 --- a/include/linux/iova.h +++ b/include/linux/iova.h @@ -28,7 +28,6 @@ struct iova { /* holds all the iova translations for a domain */ struct iova_domain { - spinlock_t iova_alloc_lock;/* Lock to protect iova allocation */ spinlock_t iova_rbtree_lock; /* Lock to protect update of rbtree */ struct rb_root rbroot; /* iova domain rbtree root */ struct rb_node *cached32_node; /* Save last alloced node */ |