MTD API locking and concurrency
dedekind1 at gmail.com
Tue Mar 13 08:41:11 EDT 2012
On Tue, 2012-03-13 at 06:45 +0100, Robert Jarzmik wrote:
> I came across a concurrent usage of my MTD driver by UBIFS by doing
> an IOC_UBI_UPVOL. As my chip doesn't support multiple requests at a time, I need
> to protect the access to chip registers.
> I wonder if mtd api function can be called in interrupt context.
No, this is not explicitely documented and you are welcome to send a
patch which adds a comment to mtd.h, but all the MTD API functions are
supposed to be called from sleeping context. IOW, the caller should keep
in mind that these functions may sleep.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the linux-mtd