Lines Matching refs:lockowner
51 nlmclnt_get_lockowner(struct nlm_lockowner *lockowner)
53 refcount_inc(&lockowner->count);
54 return lockowner;
57 static void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner)
59 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock))
61 list_del(&lockowner->list);
62 spin_unlock(&lockowner->host->h_lock);
63 nlmclnt_release_host(lockowner->host);
64 kfree(lockowner);
69 struct nlm_lockowner *lockowner;
70 list_for_each_entry(lockowner, &host->h_lockowners, list) {
71 if (lockowner->pid == pid)
88 struct nlm_lockowner *lockowner;
89 list_for_each_entry(lockowner, &host->h_lockowners, list) {
90 if (lockowner->owner != owner)
92 return nlmclnt_get_lockowner(lockowner);
173 /* lockowner allocation has failed */