From: charles Date: Thu, 8 May 2008 23:23:26 +0000 (+0000) Subject: Add YYIELD to yaffs_Scan loop X-Git-Tag: pre-name-change~280 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=bc2bd8f4d574016dbb741320d60901bd13bda01f;hp=1a7631863c280a06517f678b26b07b550d077ab7 Add YYIELD to yaffs_Scan loop --- diff --git a/yaffs_guts.c b/yaffs_guts.c index c1a5b0c..223f2c1 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -12,7 +12,7 @@ */ const char *yaffs_guts_c_version = - "$Id: yaffs_guts.c,v 1.55 2008-05-05 07:58:58 charles Exp $"; + "$Id: yaffs_guts.c,v 1.56 2008-05-08 23:23:26 charles Exp $"; #include "yportenv.h" @@ -5568,6 +5568,8 @@ static int yaffs_Scan(yaffs_Device * dev) for (blockIterator = startIterator; !alloc_failed && blockIterator <= endIterator; blockIterator++) { + YYIELD(); + if (dev->isYaffs2) { /* get the block to scan in the correct order */ blk = blockIndex[blockIterator].block;