This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RE : Is JFFS2 thread-safe?
- From: David Woodhouse <dwmw2 at infradead dot org>
- To: Vincent Catros <Vincent dot Catros at elios-informatique dot fr>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 28 Nov 2003 11:14:35 +0000
- Subject: Re: [ECOS] RE : [ECOS] Is JFFS2 thread-safe?
- References: <000001c3b4c7$023894e0$7407a8c0@figuier>
On Thu, 2003-11-27 at 10:15 +0100, Vincent Catros wrote:
> If I understand, JFFS2 should be thread safe, but this has never been
> tested since multual access is avoided by fileio layer when using
> CYG_SYNCMODE_FILE_FILESYSTEM flag?
It's never been tested under eCos, although the same JFFS2-internal
locking is well-tested under Linux.
If there are bugs, they are with the mapping from Linux locking
primitives to eCos locking primitives. In particular, in the presence of
preemptive scheduling I suspect that the spin_lock() primitive should be
getting a scheduler lock.
--
dwmw2
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss