dead_vnops.c (2946) | dead_vnops.c (3396) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: dead_vnops.c,v 1.3 1994/08/02 07:44:51 davidg Exp $ | 34 * $Id: dead_vnops.c,v 1.4 1994/09/21 03:46:52 wollman Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/time.h> 40#include <sys/kernel.h> 41#include <sys/vnode.h> 42#include <sys/errno.h> --- 317 unchanged lines hidden (view full) --- 360int 361chkvnlock(vp) 362 register struct vnode *vp; 363{ 364 int locked = 0; 365 366 while (vp->v_flag & VXLOCK) { 367 vp->v_flag |= VXWANT; | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/time.h> 40#include <sys/kernel.h> 41#include <sys/vnode.h> 42#include <sys/errno.h> --- 317 unchanged lines hidden (view full) --- 360int 361chkvnlock(vp) 362 register struct vnode *vp; 363{ 364 int locked = 0; 365 366 while (vp->v_flag & VXLOCK) { 367 vp->v_flag |= VXWANT; |
368 sleep((caddr_t)vp, PINOD); | 368 (void) tsleep((caddr_t)vp, PINOD, "ckvnlk", 0); |
369 locked = 1; 370 } 371 return (locked); 372} | 369 locked = 1; 370 } 371 return (locked); 372} |