msdosfs_vnops.c (3167) | msdosfs_vnops.c (3396) |
---|---|
1/* $Id: msdosfs_vnops.c,v 1.3 1994/09/27 20:42:56 phk Exp $ */ | 1/* $Id: msdosfs_vnops.c,v 1.4 1994/09/28 16:45:14 dfr Exp $ */ |
2/* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */ 3 4/*- 5 * Copyright (C) 1994 Wolfgang Solfrank. 6 * Copyright (C) 1994 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 1699 unchanged lines hidden (view full) --- 1709{ 1710 struct denode *dep = VTODE(ap->a_vp); 1711 1712 while (dep->de_flag & DE_LOCKED) { 1713 dep->de_flag |= DE_WANTED; 1714 if (dep->de_lockholder == curproc->p_pid) 1715 panic("msdosfs_lock: locking against myself"); 1716 dep->de_lockwaiter = curproc->p_pid; | 2/* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */ 3 4/*- 5 * Copyright (C) 1994 Wolfgang Solfrank. 6 * Copyright (C) 1994 TooLs GmbH. 7 * All rights reserved. 8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below). 9 * --- 1699 unchanged lines hidden (view full) --- 1709{ 1710 struct denode *dep = VTODE(ap->a_vp); 1711 1712 while (dep->de_flag & DE_LOCKED) { 1713 dep->de_flag |= DE_WANTED; 1714 if (dep->de_lockholder == curproc->p_pid) 1715 panic("msdosfs_lock: locking against myself"); 1716 dep->de_lockwaiter = curproc->p_pid; |
1717 (void) sleep((caddr_t) dep, PINOD); | 1717 (void) tsleep((caddr_t) dep, PINOD, "msdlck", 0); |
1718 } 1719 dep->de_lockwaiter = 0; 1720 dep->de_lockholder = curproc->p_pid; 1721 dep->de_flag |= DE_LOCKED; 1722 return 0; 1723} 1724 1725int --- 222 unchanged lines hidden --- | 1718 } 1719 dep->de_lockwaiter = 0; 1720 dep->de_lockholder = curproc->p_pid; 1721 dep->de_flag |= DE_LOCKED; 1722 return 0; 1723} 1724 1725int --- 222 unchanged lines hidden --- |