Lines Matching refs:lockowner
49 static struct nlm_lockowner *nlm_get_lockowner(struct nlm_lockowner *lockowner) in nlm_get_lockowner() argument
51 refcount_inc(&lockowner->count); in nlm_get_lockowner()
52 return lockowner; in nlm_get_lockowner()
55 static void nlm_put_lockowner(struct nlm_lockowner *lockowner) in nlm_put_lockowner() argument
57 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlm_put_lockowner()
59 list_del(&lockowner->list); in nlm_put_lockowner()
60 spin_unlock(&lockowner->host->h_lock); in nlm_put_lockowner()
61 nlmclnt_release_host(lockowner->host); in nlm_put_lockowner()
62 kfree(lockowner); in nlm_put_lockowner()
67 struct nlm_lockowner *lockowner; in nlm_pidbusy() local
68 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy()
69 if (lockowner->pid == pid) in nlm_pidbusy()
86 struct nlm_lockowner *lockowner; in __nlm_find_lockowner() local
87 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlm_find_lockowner()
88 if (lockowner->owner != owner) in __nlm_find_lockowner()
90 return nlm_get_lockowner(lockowner); in __nlm_find_lockowner()