HomeFreeBSD

fusefs: fix intermittency in the BadServer.ShortWrite test

Description

fusefs: fix intermittency in the BadServer.ShortWrite test

This test implicitly depended on the order in which two threads
completed. If the test thread finished first, the test would pass. But
if the mock file system thread did, it would attempt to read from an
unmounted file system, and fail. As a result, the test would randomly
fail once out of every several thousand executions. Fix it by telling
the mock file system's event loop to exit without attempting to read any
more events.

Reported by: Siva Mahadevan <me@svmhdvn.name>
MFC after: 1 week
Reviewed by: Siva Mahadevan <me@svmhdvn.name>
Differential Revision: https://reviews.freebsd.org/D53080

(cherry picked from commit d1bd541b385d49d2ae3a8bad9df72779b606e208)

Details

Provenance
asomersAuthored on Oct 14 2025, 2:18 AM
Differential Revision
D53080: fusefs: fix intermittency in the BadServer.ShortWrite test
Parents
rGcd4f1705af83: release: Make fetch happen in GCE images
Branches
Unknown
Tags
Unknown