Lines Matching refs:lockowner
337 nlmsvc_get_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_get_lockowner() argument
339 refcount_inc(&lockowner->count); in nlmsvc_get_lockowner()
340 return lockowner; in nlmsvc_get_lockowner()
343 void nlmsvc_put_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_put_lockowner() argument
345 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
347 list_del(&lockowner->list); in nlmsvc_put_lockowner()
348 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
349 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
350 kfree(lockowner); in nlmsvc_put_lockowner()
355 struct nlm_lockowner *lockowner; in __nlmsvc_find_lockowner() local
356 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlmsvc_find_lockowner()
357 if (lockowner->pid != pid) in __nlmsvc_find_lockowner()
359 return nlmsvc_get_lockowner(lockowner); in __nlmsvc_find_lockowner()