public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* MTD API locking and concurrency
@ 2012-03-13  5:45 Robert Jarzmik
  2012-03-13 12:41 ` Artem Bityutskiy
  2012-03-13 17:17 ` Mike Dunn
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Jarzmik @ 2012-03-13  5:45 UTC (permalink / raw)
  To: Linux mtd

Hi,

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. My wish would
be to use mutexes, but I have to be sure there is no interrupt path I have not
seen. The only thing I'm certain is that my MTD drivers doesn't handle
interrupts, so the interrupt won't come from him.

Is there a guarantee that mtd api functions are called with !in_interrupt() ?

Cheers.

-- 
Robert

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-13 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13  5:45 MTD API locking and concurrency Robert Jarzmik
2012-03-13 12:41 ` Artem Bityutskiy
2012-03-13 17:17 ` Mike Dunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox