Don't hold vp->v_interlock when calling vcount(); vcount() calls
vgone(), which may sleep.
This commit is contained in:
parent
513dcb38be
commit
13e5178e3d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: spec_vnops.c,v 1.53 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
/* $NetBSD: spec_vnops.c,v 1.54 2001/04/17 18:49:26 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -570,8 +570,8 @@ spec_close(v)
|
|||
int (*devclose) __P((dev_t, int, int, struct proc *));
|
||||
int mode, error, count, flags, flags1;
|
||||
|
||||
simple_lock(&vp->v_interlock);
|
||||
count = vcount(vp);
|
||||
simple_lock(&vp->v_interlock);
|
||||
flags = vp->v_flag;
|
||||
simple_unlock(&vp->v_interlock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue