[RTEMS Project] #4538: mutex is not initilaized in jffs2_read_inode
RTEMS trac
trac at rtems.org
Thu Oct 28 15:05:51 UTC 2021
#4538: mutex is not initilaized in jffs2_read_inode
---------------------------+----------------------
Reporter: chenjin_zhong | Owner: (none)
Type: defect | Status: closed
Priority: normal | Milestone: 5.1
Component: fs/jaffs2 | Version: 5
Severity: normal | Resolution: invalid
Keywords: | Blocked By:
Blocking: |
---------------------------+----------------------
Comment (by chenjin_zhong):
Replying to [comment:3 Sebastian Huber]:
> Yes, the f->sem is an empty structure, it is not initialized, it is not
used, locked or whatever in RTEMS. This is intentional and not a bug. I
repeat: **The RTEMS port of JFFS2 does not use a file system internal
locking. There is a global lock for each JFFS2 instance.**
Thank you! I got it. but we Suppose that a GC thread or other thread/task
and main task calls jffs2_do_readinode simultaneous. a global lock for
each JFFS2 instance can't work.
--
Ticket URL: <http://devel.rtems.org/ticket/4538#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list