From leilei874@gmail.com Mon Jul 16 01:30:12 2012
Received: from mail-vc0-f177.google.com ([209.85.220.177])
	by stoneboat.aleph1.co.uk with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16)
	(Exim 4.72) (envelope-from <leilei874@gmail.com>) id 1SqZCU-0006eH-Ft
	for yaffs@lists.aleph1.co.uk; Mon, 16 Jul 2012 01:30:12 +0100
Received: by vcbfl13 with SMTP id fl13so1314599vcb.8
	for <yaffs@lists.aleph1.co.uk>; Sun, 15 Jul 2012 17:30:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=JuW1c/p9Miltnb6885TbZAbA5cirM+TVjBG8BgbYXg4=;
	b=C68StvhT2F0kS067C/roE2jIMnP2KCPGAdT+egke58wfH6gedad/BendxXHsZJ+N8Q
	NsHKYh7mwbBxeEIEXVCUk8wtrT0LTpxONk9iOOS69BuBB5HhjdbAaSq2yOJf0Hx/Fkhg
	nfG/LoF5HLBXZbashotV3MO57we/2UNq6R+r060LFs/EP1kfFFO7+80N9LXXyAx4U0Rs
	yOlJp2EACz0Q9yXNInzq46v3h/tjTltlulaHAgdA947AOq4xA0tOieJ7B8PnFwTaYX8n
	1bxYd1EtaU8CROBZ8BEvYYPZO0zSzKVIuAL5ka7QHXN4djPjtVRCT/buXZcGo+mHoDe5
	WLWQ==
Received: by 10.220.142.9 with SMTP id o9mr4350387vcu.51.1342398603790; Sun,
	15 Jul 2012 17:30:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.238.203 with HTTP; Sun, 15 Jul 2012 17:29:23 -0700 (PDT)
From: Ezio Zhang <leilei874@gmail.com>
Date: Mon, 16 Jul 2012 08:29:23 +0800
Message-ID: <CAJC8qy8MfLSJJ+LgFs9XSZ6cv8SGrppyKVMWqQguwgdyrvd9JA@mail.gmail.com>
To: Charles Manning <cdhmanning@gmail.com>,
 YAFFS <yaffs@lists.aleph1.co.uk>,
 Cn Zh <leilei874@gmail.com>
Content-Type: text/plain; charset=UTF-8
X-SA-Exim-Connect-IP: 209.85.220.177
X-SA-Exim-Mail-From: leilei874@gmail.com
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-0.8 required=4.5 tests=AWL,BAYES_00,
	FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS
	autolearn=no version=3.3.1
X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:51:10 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: Re: [Yaffs] is this a bug or my mis-use
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Discussion of YAFFS NAND flash filesystem <yaffs.lists.aleph1.co.uk>
List-Unsubscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/options/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=unsubscribe>
List-Archive: <http://lists.aleph1.co.uk/lurker/list/yaffs.html>
List-Post: <mailto:yaffs@lists.aleph1.co.uk>
List-Help: <mailto:yaffs-request@lists.aleph1.co.uk?subject=help>
List-Subscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=subscribe>
X-List-Received-Date: Mon, 16 Jul 2012 00:30:12 -0000

i use it in yaffs2 mode,and run yaffs_bg_gc() as a background thread
has a  lower priority than threads that operate files.in the
yaffs_gc_block(),i locked before yaffs_generic_obj_del() and unlocked
after it finished.
the effect is same as you said using without soft del.but if using
soft del,some yaffs_obj will be reused after soft del and before
recycled. and this may cause some problem that dev->gc_cleanup_list[]
record this obj and deleted it background.
----
Regards,
Ezio.

