[ECOS] [PATCH] fix possible jffs2 deadlock (sync with mtd cvs)

Neundorf, Alexander Alexander.Neundorf@jenoptik.com
Fri Jul 30 10:41:00 GMT 2004


Hi,

the attached patch fixes a possible deadlock in the jffs2 garbage collection.
At the end of garbage_collect_pass() there are two error checks, each followed by a return. In these both cases releasing the alloc_sem semaphore was missing.
The patch fixes this and syncs gc.c with the version from mtd cvs.
Please apply.

Another question:

The file jffs2/..../fs-ecos.c contains a check for gcc 3.2.x and ARM_ARCH_4 -> #error This compiler is known to be broken

Does this also apply for ARM_ARCH_5 ?
It compiles here with -mcpu=xscale and gcc 3.2.1 ...

Bye
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jffs2-gc.diff
Type: application/octet-stream
Size: 1082 bytes
Desc: jffs2-gc.diff
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040730/f5c098e4/attachment.obj>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list