<html><head>

<link media="all" type="text/css" href="/webmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet">
</head><body>
Hello,<br><br>I am working on an embedded device that uses kernel 2.6.21 and ARM CPU.<br>The device has SDHC card with two partitions. One partition is formatted with Ext3. The other partition is formatted with FAT32 and most of the time is not mounted at all (not used).<br>The Ext3 partition is mounted with datamode=ordered.<br><br>The problem I am experiencing is that occasionally kjournald seems to block and as a result all access to the Ext3 partition stops.<br>It looks like this happens when sync() is called from an application. Some of the applications that run on the device write to log files on the Ext3 partition. Every write is usually less than 100 bytes and looks something like that:<br>fopen();<br>fprintf() - one or more times<br>fclose();<br>sync();<br><br>For example here is the output from SysRq-t:<br><br>kjournald     D C0284784     0   408      6 (L-TLB)<br>[<c0284240>] (schedule+0x0/0x64c) from [<c00f8724>] (journal_commit_transaction+0x16c/0x1568)<br>[<c00f85b8>] (journal_commit_transaction+0x0/0x1568) from [<c00fd99c>] (kjournald+0xbc/0x260)<br>[<c00fd8e0>] (kjournald+0x0/0x260) from [<c0070d9c>] (kthread+0xe8/0x128)<br>[<c0070cb4>] (kthread+0x0/0x128) from [<c005d980>] (do_exit+0x0/0x8c8)<br><br>Everytime the problem happens, kjournald is stuck in journal_commit_transaction.<br><br>I am trying to figure out what is causing this and to fix it (one way or another).<br><br>Searching on Internet revealed that fsync() and Ext3 will actually sync everything. This is not a problem in my case, as long as everything continues normally after that.<br>Also, performance related issues other people reported are not real problems in my case.<br><br>Any help is appreciated.<br><br>Thanks,<br><br>Dimitar<br><br></body></html>