summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-04-04 12:07:16 +0000
committerjeff <jeff@FreeBSD.org>2005-04-04 12:07:16 +0000
commitd8b17b2eac0bc6aa7fcc63f8f2aed9016c3a885d (patch)
treedd683061460bcfb7686e44458fe63ef528f438df
parentb6f8b968c23aec5369c008801a56e489183a2792 (diff)
downloadFreeBSD-src-d8b17b2eac0bc6aa7fcc63f8f2aed9016c3a885d.zip
FreeBSD-src-d8b17b2eac0bc6aa7fcc63f8f2aed9016c3a885d.tar.gz
- Add a missing unlock of the vnode_free_list_mtx.
Spotted by: Antoine Brodin
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index dfa5a68..886d5ab 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -822,8 +822,10 @@ getnewvnode(tag, mp, vops, vpp)
}
msleep(&vnlruproc_sig, &vnode_free_list_mtx, PVFS,
"vlruwk", hz);
- if (numvnodes > desiredvnodes)
+ if (numvnodes > desiredvnodes) {
+ mtx_unlock(&vnode_free_list_mtx);
return (ENFILE);
+ }
}
numvnodes++;
mtx_unlock(&vnode_free_list_mtx);
OpenPOWER on IntegriCloud