HomeFreeBSD

fusefs: fix a panic in VOP_READDIR

Description

fusefs: fix a panic in VOP_READDIR

The original fusefs import, r238402, contained a bug in fuse_vnop_close that
could close a directory's file handle while there were still other open file
descriptors. The code looks deliberate, but there is no explanation for it.
This necessitated a workaround in fuse_vnop_readdir that would open a new
file handle if, "for some mysterious reason", that vnode didn't have any
open file handles. r345781 had the effect of causing the workaround to
panic, making the problem more visible.

This commit removes the workaround and the original bug, which also fixes
the panic.

Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on
Parents
rS345853: rctl: fix sysctl kern.racct.enable use after r341182
Branches
Unknown
Tags
Unknown