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