Fix VOP_CLOSE() in userspace.
authorEtienne Dechamps <etienne.dechamps@ovh.net>
Thu, 27 Sep 2012 14:05:15 +0000 (16:05 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Oct 2012 20:32:48 +0000 (13:32 -0700)
commit274091c07482773c7e81cbe70f0b46b4606048d0
tree62f1c63c6846ce3de806703c73fc333c83691f81
parent0aebd4f9e3223e8f1e09de7b29bba4f375db840c
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
include/sys/zfs_context.h