nfs_clcomsubs.c (dd02d9d605b6d8849e858d7644bb84b45c606b46) | nfs_clcomsubs.c (90d60ca8b7f2483cdc162633f7ea4738dad8fa0e) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Rick Macklem at The University of Guelph. --- 462 unchanged lines hidden (view full) --- 471void 472nfscl_lockunlock(struct nfsv4lock *lckp) 473{ 474 475 nfsv4_unlock(lckp, 0); 476} 477 478/* | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Rick Macklem at The University of Guelph. --- 462 unchanged lines hidden (view full) --- 471void 472nfscl_lockunlock(struct nfsv4lock *lckp) 473{ 474 475 nfsv4_unlock(lckp, 0); 476} 477 478/* |
479 * Called to derefernce a lock on a stateid (delegation or open owner). | 479 * Called to dereference a lock on a stateid (delegation or open owner). |
480 */ 481void 482nfscl_lockderef(struct nfsv4lock *lckp) 483{ 484 485 NFSLOCKCLSTATE(); 486 lckp->nfslock_usecnt--; 487 if (lckp->nfslock_usecnt == 0 && (lckp->nfslock_lock & NFSV4LOCK_WANTED)) { 488 lckp->nfslock_lock &= ~NFSV4LOCK_WANTED; 489 wakeup((caddr_t)lckp); 490 } 491 NFSUNLOCKCLSTATE(); 492} | 480 */ 481void 482nfscl_lockderef(struct nfsv4lock *lckp) 483{ 484 485 NFSLOCKCLSTATE(); 486 lckp->nfslock_usecnt--; 487 if (lckp->nfslock_usecnt == 0 && (lckp->nfslock_lock & NFSV4LOCK_WANTED)) { 488 lckp->nfslock_lock &= ~NFSV4LOCK_WANTED; 489 wakeup((caddr_t)lckp); 490 } 491 NFSUNLOCKCLSTATE(); 492} |