Thread (31 messages) flat view 31 messages, 6 authors, 2011-08-24
DORMANTno replies

[PATCH 1/7] omap: iommu: migrate to the generic IOMMU API

From: Ohad Ben-Cohen <hidden>
Date: 2011-08-24 14:46:37
Also in: linux-omap

On Wed, Aug 24, 2011 at 4:15 PM, Roedel, Joerg [off-list ref] wrote:
Yes, it should be safe in your context. But the iommu-api is generic and
I would prefer that all functions it provides can be called from any
context.
Not a problem.

I thought you only cared about map/unmap, but if you prefer
attach/deattach to be atomic too, I'll migrate the driver to use a
spin lock.
Or is the time required for attaching/detaching too long so that it
makes sense to put secondary threads to sleep?
It doesn't look like it. I think a mutex was originally chosen at that
point because those functions were used in a process context.

Thanks,
Ohad.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help