[Yaffs] [Yaffs-archive] Re: waiting for callback after mtd->erase() failed

Charles Manning manningc2@actrix.gen.nz
Mon, 8 Dec 2003 07:42:01 +1300


On Friday 05 December 2003 21:00, Stephan Linke wrote:
> Hi,
>
> there seames to be a problem in nandmtd_EraseBlockInNAND(). When
> mtd->erase() failed YAFFS is still expecting the callback to be called. But
> having a look at nand_erase() shows that the callabck is only called if the
> return value is zero. This must lead to a deadlock situation next time
> YAFFS tries to erase a block.
>

How recent is your version of YAFFS? I think this problem was found and fixed 
quite a while ago. 

The erase call is always synchonous on NAND and the callback is no longer 
used.



-- CHarles

---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.