From 51a543ed33dfc41564d2e4fd6fd7f28a5b910506 Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 4 Apr 2009 17:48:38 +0000 Subject: Revert change 190655 temporarily. It breaks many setups where nullfs is used and needs to be revisited. --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/vfs_cache.c') diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index ea19e13..6427f65 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -971,7 +971,6 @@ vn_vptocnp(struct vnode **vp, char **bp, char *buf, u_int *buflen) vdrop(*vp); VFS_UNLOCK_GIANT(vfslocked); if (error) { - CACHE_RLOCK(); numfullpathfail2++; return (error); } @@ -980,6 +979,7 @@ vn_vptocnp(struct vnode **vp, char **bp, char *buf, u_int *buflen) CACHE_RLOCK(); if ((*vp)->v_iflag & VI_DOOMED) { /* forced unmount */ + CACHE_RUNLOCK(); vdrop(*vp); return (ENOENT); } -- cgit v1.1