Lines Matching defs:lockowner
54 nlmclnt_get_lockowner(struct nlm_lockowner *lockowner)
56 refcount_inc(&lockowner->count);
57 return lockowner;
60 static void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner)
62 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock))
64 list_del(&lockowner->list);
65 spin_unlock(&lockowner->host->h_lock);
66 nlmclnt_release_host(lockowner->host);
67 kfree(lockowner);
72 struct nlm_lockowner *lockowner;
73 list_for_each_entry(lockowner, &host->h_lockowners, list) {
74 if (lockowner->pid == pid)
91 struct nlm_lockowner *lockowner;
92 list_for_each_entry(lockowner, &host->h_lockowners, list) {
93 if (lockowner->owner != owner)
95 return nlmclnt_get_lockowner(lockowner);
177 /* lockowner allocation has failed */