reassignbuf() is called by bdirty() from within biodone processing.

It can have waiters.
This commit is contained in:
mlelstv 2008-06-18 18:11:25 +00:00
parent 2096a94df7
commit 8b80c3645f
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_subr2.c,v 1.26 2008/06/16 09:48:13 ad Exp $ */ /* $NetBSD: vfs_subr2.c,v 1.27 2008/06/18 18:11:25 mlelstv Exp $ */
/*- /*-
* Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc. * Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_subr2.c,v 1.26 2008/06/16 09:48:13 ad Exp $"); __KERNEL_RCSID(0, "$NetBSD: vfs_subr2.c,v 1.27 2008/06/18 18:11:25 mlelstv Exp $");
#include "opt_ddb.h" #include "opt_ddb.h"
@ -548,7 +548,6 @@ reassignbuf(struct buf *bp, struct vnode *vp)
KASSERT(bp->b_objlock == &vp->v_interlock); KASSERT(bp->b_objlock == &vp->v_interlock);
KASSERT(mutex_owned(&vp->v_interlock)); KASSERT(mutex_owned(&vp->v_interlock));
KASSERT((bp->b_cflags & BC_BUSY) != 0); KASSERT((bp->b_cflags & BC_BUSY) != 0);
KASSERT(!cv_has_waiters(&bp->b_done));
/* /*
* Delete from old vnode list, if on one. * Delete from old vnode list, if on one.