commit | 6bb16c0c91a08d299f6fcbe87132c46a2177ed3a | [log] [tgz] |
---|---|---|
author | Chris Suter <csuter@google.com> | Tue Jul 27 16:31:38 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Tue Jul 27 16:31:38 2021 +0000 |
tree | f55ad88bbe9b2b1a548f29fd4e125c52691e47cb | |
parent | 034b968794aea0db3c8c88195437c9601f493d78 [diff] |
[fxfs] Fix race in graveyard reaper When the reaper task finished it would remove its own future, but that would mean that if wait_for_reap was called just at that moment, it wouldn't wait, and would just continue. The problem is that at that point the Arc reference hadn't been dropped, but test code depends upon this. The solution is to not remove the future when the task finishes. Also, the paused state wasn't doing anything so I got rid of that and we can just use an Option instead. Fixed: 80777 Change-Id: Icf52e90dde734fbf24dff62ee0e16ca7198637ea Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/559902 Commit-Queue: James Sullivan <jfsulliv@google.com> Reviewed-by: James Sullivan <jfsulliv@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.