summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-08-14 10:57:28 +0000
committerkib <kib@FreeBSD.org>2009-08-14 10:57:28 +0000
commita8c207161240494e4fae070c8b48c710024a623d (patch)
treec3ff14b4cd598d544bac5e236e33aa58b2f4c9e4
parent4331ba05c56565411f17334d147e28403a968274 (diff)
downloadFreeBSD-src-a8c207161240494e4fae070c8b48c710024a623d.zip
FreeBSD-src-a8c207161240494e4fae070c8b48c710024a623d.tar.gz
Correctly handle unlock for !MAKEENTRY case, after successfull attempt of
lock upgrade cache shall be unlocked from write. Reported by: Lucius Windschuh <lwindschuh googlemail com> Reviewed by: kan Approved by: re (rwatson)
-rw-r--r--sys/kern/vfs_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index f21f4af..7854803 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -416,7 +416,8 @@ retry_wlocked:
if (dvp->v_cache_dd->nc_flag & NCF_ISDOTDOT)
cache_zap(dvp->v_cache_dd);
dvp->v_cache_dd = NULL;
- goto unlock;
+ CACHE_WUNLOCK();
+ return (0);
}
if (dvp->v_cache_dd->nc_flag & NCF_ISDOTDOT)
*vpp = dvp->v_cache_dd->nc_vp;
OpenPOWER on IntegriCloud