From bc2bd8f4d574016dbb741320d60901bd13bda01f Mon Sep 17 00:00:00 2001 From: charles Date: Thu, 8 May 2008 23:23:26 +0000 Subject: [PATCH] Add YYIELD to yaffs_Scan loop --- yaffs_guts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2