From b43ddeabe08f48419cc74eca0b8f6bb09200de7f Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 3 May 2012 14:26:42 +0000 Subject: [PATCH] move the assert after the locked case. --- sys/coda/coda_vnops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index d6e2b36cd6ad..616967de6eeb 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $ */ +/* $NetBSD: coda_vnops.c,v 1.86 2012/05/03 14:26:42 christos Exp $ */ /* * @@ -46,7 +46,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.86 2012/05/03 14:26:42 christos Exp $"); #include #include @@ -1953,8 +1953,6 @@ coda_getpages(void *v) int waslocked; /* 1 if vnode lock was held on entry */ int didopen = 0; /* 1 if we opened container file */ - KASSERT(mutex_owned(vp->v_interlock)); - /* * Handle a case that uvm_fault doesn't quite use yet. * See layer_vnops.c. for inspiration. @@ -1963,6 +1961,8 @@ coda_getpages(void *v) return EBUSY; } + KASSERT(mutex_owned(vp->v_interlock)); + /* Check for control object. */ if (IS_CTL_VP(vp)) { printf("%s: control object %p\n", __func__, vp);