From 1b30333825aae4f995c8ea288798cd9fe0fa318f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 11 Mar 2015 09:46:27 +0100 Subject: [PATCH] tmpfs: allow recurse as that does happen when using unionfs --- sys/fs/tmpfs/tmpfs_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index d247fbf713b..bbfabb074cc 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -543,7 +543,8 @@ loop: goto loop; } TMPFS_NODE_UNLOCK(node); - error = vget(vp, lkflag | LK_INTERLOCK, curthread); + error = vget(vp, lkflag | LK_INTERLOCK | LK_CANRECURSE, + curthread); if (error == ENOENT) { TMPFS_NODE_LOCK(node); goto loop;