Message ID | 20110826112531.GQ1923@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Aug 26, 2011 at 2:25 PM, Roedel, Joerg <Joerg.Roedel@amd.com> wrote: > Applied all to arm/omap, thanks Ohad. I also put a commit on-top which > finished the mutex->spin_lock conversion. Looks like one call-place was > missed. See attached patch. > > commit 4234541f1a64d9dc6d489cf8f614dc01c62360f6 > Author: Joerg Roedel <joerg.roedel@amd.com> > Date: Fri Aug 26 13:20:06 2011 +0200 > > omap: iommu: Fix up mutex->spin_lock conversion of iommu_lock > > The omap_iommu_set_isr() was still using the mutex functions Thanks, Joerg. (I am already working on removing omap_iommu_set_isr() and providing that functionality via the IOMMU API, so the s/mutex/spinlock/ patch I squashed with the original patch set accidentally didn't cover that function).
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index dad45ab..90744af 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -918,14 +918,14 @@ int omap_iommu_set_isr(const char *name, return -ENODEV; obj = to_iommu(dev); - mutex_lock(&obj->iommu_lock); + spin_lock(&obj->iommu_lock); if (obj->refcount != 0) { - mutex_unlock(&obj->iommu_lock); + spin_unlock(&obj->iommu_lock); return -EBUSY; } obj->isr = isr; obj->isr_priv = isr_priv; - mutex_unlock(&obj->iommu_lock); + spin_unlock(&obj->iommu_lock); return 0; }