intel-iommu: Remove superfluous iova_alloc_lock from IOVA code
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 8 Jul 2009 14:23:30 +0000 (15:23 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 15 Jul 2009 07:17:02 +0000 (08:17 +0100)
commit3d39cecc4841e8d4c4abdb401d10180f5faaded0
tree8aa51bc0e644752384c2734ecc25ea851dc919f7
parent147202aa772329a02c6e80bc2b7a6b8dd3deac0b
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>
drivers/pci/intel-iommu.c
drivers/pci/iova.c
include/linux/iova.h