fdesc_vnops.c (3311) | fdesc_vnops.c (3396) |
---|---|
1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94 37 * | 1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94 37 * |
38 * $Id: fdesc_vnops.c,v 1.5 1994/09/21 03:46:56 wollman Exp $ | 38 * $Id: fdesc_vnops.c,v 1.6 1994/10/02 17:47:51 phk Exp $ |
39 */ 40 41/* 42 * /dev/fd Filesystem 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 88 unchanged lines hidden (view full) --- 135 } 136 137 /* 138 * otherwise lock the array while we call getnewvnode 139 * since that can block. 140 */ 141 if (fdcache_lock & FDL_LOCKED) { 142 fdcache_lock |= FDL_WANT; | 39 */ 40 41/* 42 * /dev/fd Filesystem 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 88 unchanged lines hidden (view full) --- 135 } 136 137 /* 138 * otherwise lock the array while we call getnewvnode 139 * since that can block. 140 */ 141 if (fdcache_lock & FDL_LOCKED) { 142 fdcache_lock |= FDL_WANT; |
143 sleep((caddr_t) &fdcache_lock, PINOD); | 143 (void) tsleep((caddr_t) &fdcache_lock, PINOD, "fdalvp", 0); |
144 goto loop; 145 } 146 fdcache_lock |= FDL_LOCKED; 147 148 error = getnewvnode(VT_FDESC, mp, fdesc_vnodeop_p, vpp); 149 if (error) 150 goto out; 151 MALLOC(fd, void *, sizeof(struct fdescnode), M_TEMP, M_WAITOK); --- 829 unchanged lines hidden --- | 144 goto loop; 145 } 146 fdcache_lock |= FDL_LOCKED; 147 148 error = getnewvnode(VT_FDESC, mp, fdesc_vnodeop_p, vpp); 149 if (error) 150 goto out; 151 MALLOC(fd, void *, sizeof(struct fdescnode), M_TEMP, M_WAITOK); --- 829 unchanged lines hidden --- |