HomeFreeBSD

- Add locking to all filesystem operations in fdescfs and flag it as MPSAFE.
rS179288Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Add locking to all filesystem operations in fdescfs and flag it as MPSAFE.
  • Use proper synhronization primitives to protect the internal fdesc node cache used in fdescfs.
  • Properly initialize and uninitalize hash.
  • Remove unused functions.

Since fdescfs might recurse on itself, adding proper locking to it needed some
tricky workarounds in some parts to make it work. For instance, a descriptor in
fdescfs could refer to an open descriptor to itself, thus forcing the thread to
recurse on vnode locks. Because of this, other race conditions also had to be
fixed.

Tested by: pho
Reviewed by: kib (mentor)
Approved by: kib (mentor)

Details

Provenance
lulfAuthored on
Parents
rS179287: Add myself to the calendar
Branches
Unknown
Tags
Unknown

Event Timeline