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