[roll] Roll fuchsia [starnix] Refactor empty children gating for unlink operations

This change helps mitigate the lock ordering bug described in
b/387576826. In short, the rename operation can potentially move
DirEntry nodes around the tree hierarchy. Since lock ordering assumes
a strict parent-to-child lock order, moving nodes around the tree can
result in false-positives for the mutex tracing graph.

The mitigation applied here is to offload the gating of non-empty
directories to the filesystem itself. This is arguably where the check
should belong in the first place, and has the added benefit of removing
the need for the DirEntry algorithm to obtain a lock on the children
of the node which we are unlinking.

This change adds a unittest to cover the above scenario. I've also
renamed "child" in the algorithm to instead be "child_to_unlink," which
I hope makes the code more readable.

Original-Bug: b/387576826
Test: Locally validated, added a unittest, and CQ.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1206709
Original-Revision: bcfe56cb6cb16be4f1cb8f28fe0809aa8af80156
GitOrigin-RevId: 216e587760899e1e2a1e932810fc262112a2928c
Change-Id: Id95fb11ba4b6020bda51bd54877f41be574e2449
1 file changed
tree: 2e2d476b3ce8d8f1c2f82b7b4162475cf4e08dc2
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.