]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix intermittency in the dev_fuse_poll test
authorAlan Somers <asomers@FreeBSD.org>
Sat, 25 Sep 2021 16:16:20 +0000 (10:16 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Wed, 6 Oct 2021 20:28:48 +0000 (14:28 -0600)
commitf44a448709d3b77508fd59ee28201ae1666387c2
treed8a7c4eb5199e65df125d2c3d541ecfbbd5d9b28
parent880b670c6fdbd1268887869375771e0a74d2c8ac
fusefs: fix intermittency in the dev_fuse_poll test

The DevFusePoll::access/select test would occasionally segfault.  The
cause was a file descriptor that was shared between two threads.  The
first thread would kill the second and close the file descriptor.  But
it was possible that the second would read the file descriptor before it
shut down.  That did not cause problems for kqueue, poll, or blocking
operation, but it triggered segfaults in select's macros.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D32142
tests/sys/fs/fusefs/mockfs.cc
tests/sys/fs/fusefs/mockfs.hh