MTD API locking and concurrency

Mike Dunn mikedunn at newsguy.com
Tue Mar 13 13:17:49 EDT 2012


On 03/12/2012 10:45 PM, Robert Jarzmik wrote:
> 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.


FYI, the nand infrastructure code handles this for its devices; see
nand_base.c::nand_get_device()

Mike



More information about the linux-mtd mailing list