From 0823d2996cd1baad4cb69347e0b3af63ec52dbc0 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Thu, 30 Oct 2003 16:22:51 +0000 Subject: [PATCH] Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop is always shoould entered with mutex locked. --- sys/kern/vfs_default.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 41c40403fcb2..e89654fa849d 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -899,6 +899,7 @@ vfs_stdsync(mp, waitfor, cred, td) mtx_unlock(&mntvnode_mtx); if ((error = vget(vp, lockreq, td)) != 0) { + mtx_lock(&mntvnode_mtx); if (error == ENOENT) goto loop; continue;