From johan@teenageengineering.com Mon Feb 01 11:29:40 2010
Received: from n12.c03.server-system.net ([72.47.224.12])
	by stoneboat.aleph1.co.uk with esmtp (Exim 4.69)
	(envelope-from <johan@teenageengineering.com>) id 1NbuTG-0008MH-Lu
	for yaffs@lists.aleph1.co.uk; Mon, 01 Feb 2010 11:29:40 +0000
Received: from [212.107.146.90] (port=46719 helo=johanxp)
	by n12.c03.server-system.net with esmtpa (Exim 4.63)
	(envelope-from <johan@teenageengineering.com>) id 1NbuT1-0003uR-VJ
	for yaffs@lists.aleph1.co.uk; Mon, 01 Feb 2010 03:29:21 -0800
Message-ID: <F002782D89A542FBBB9005EFF1892825@johanxp>
From: "Johan Kotlinski" <johan@teenageengineering.com>
To: <yaffs@lists.aleph1.co.uk>
Date: Mon, 1 Feb 2010 12:29:17 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_00B2_01CAA33A.2BEFD8D0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-Authenticated-User: 48231 johan@teenageengineering.com
X-SA-Exim-Connect-IP: 72.47.224.12
X-SA-Exim-Mail-From: johan@teenageengineering.com
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=4.5 tests=BAYES_50,HTML_MESSAGE
	autolearn=no version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: [Yaffs] multithreading question
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.11
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, 01 Feb 2010 11:29:41 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_00B2_01CAA33A.2BEFD8D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!
It appears that Yaffs2 multithreading protection is on a very high level =
(mutex wrapping entire fread/fwrite calls).

My worry is that if a low-priority task does a large fwrite call, it =
could block high-priority tasks for a long time.
Is this an acknowledged problem? Are there comparable file systems that =
handle multithreading in a more granular way?

Regards,
Johan
------=_NextPart_000_00B2_01CAA33A.2BEFD8D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2 face=3DArial>Hi!</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial>It appears that Yaffs2 multithreading =
protection is=20
on a very high level (mutex wrapping entire fread/fwrite =
calls).</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>My worry is that if a low-priority task =
does a=20
large fwrite call, it could block high-priority tasks for a long=20
time.</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial>Is this an acknowledged problem? Are =
there=20
comparable file systems that handle multithreading in a more granular=20
way?</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT><FONT size=3D2 =
face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Regards,</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial>Johan</FONT></DIV></BODY></HTML>

------=_NextPart_000_00B2_01CAA33A.2BEFD8D0--



