zfsonlinux/zfs — pull request #992 by dechamps (2012-09-27 14:11:25+00:00)
Title: 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.

See issue #989.