mtd partition1 corruption during writes to JFFS2 on partition2.

David Woodhouse dwmw2 at
Mon Feb 3 10:40:24 EST 2003

On Mon, 2003-02-03 at 14:13, Vipin Malik wrote:
> I'll take a look. Anyone care to tell me where the locking to prevent 
> multiple processes from accessing the flash at the same time takes place? 
> (is this a chip driver feature or an mtd feature? There are some spin locks 
> in the cfo_cmdset0002.c driver but AFAIK spin locks are really NOPS on 1P 
> machines.

Look at how it handles chip->state and sleeps on chip->wq if the chip is
currently busy. The spin_lock is only required for SMP (or preempt) --
for uniprocessor the handling of chip->state is perfectly sufficient.


More information about the linux-mtd mailing list