Lines Matching defs:lock
478 spin_lock_init(&sc->lock);
837 * If the second is non-zero, then the first refers to a Posix-lock
845 * Posix lock.
1041 * Byte-range lock aware utility to initialize the stateid of read/write
1056 /* A lost lock - don't even consider delegations */
1065 * dst, so it still has the lock stateid which we now
1096 spin_lock(&sequence->lock);
1105 spin_unlock(&sequence->lock);
1182 spin_lock(&sequence->lock);
1191 spin_unlock(&sequence->lock);
1527 /* Guard against delegation returns and new lock/unlock calls */
1622 struct nfs4_lock_state *lock;
1635 list_for_each_entry(lock, &state->lock_states, ls_locks) {
1636 trace_nfs4_state_lock_reclaim(state, lock);
1637 if (!test_bit(NFS_LOCK_INITIALIZED, &lock->ls_flags) &&
1638 !test_bit(NFS_LOCK_UNLOCKING, &lock->ls_flags))
1751 struct nfs4_lock_state *lock;
1758 list_for_each_entry(lock, &state->lock_states, ls_locks) {
1759 lock->ls_seqid.flags = 0;
1760 clear_bit(NFS_LOCK_INITIALIZED, &lock->ls_flags);