HomeFreeBSD

Fix VOP_CLOSE() in userspace.

Description

Fix VOP_CLOSE() in userspace.

Currently, for unknown reasons, VOP_CLOSE() is a no-op in userspace.
This causes file descriptor leaks. This is especially problematic with
long ztest runs, since zpool.cache is opened repeatedly and never
closed, resulting in resource exhaustion (EMFILE errors).

This patch fixes the issue by making VOP_CLOSE() do what it is supposed
to do.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #989

Details

Provenance
Etienne Dechamps <etienne.dechamps@ovh.net>Authored on Sep 27 2012, 2:05 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 3 2012, 8:32 PM
Parents
rG0aebd4f9e322: Create threads in detached state in userspace.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG274091c07482: Fix VOP_CLOSE() in userspace. (authored by Etienne Dechamps <etienne.dechamps@ovh.net>).Oct 3 2012, 8:32 PM