Lines Matching refs:lockowner
347 nlmsvc_get_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_get_lockowner() argument
349 refcount_inc(&lockowner->count); in nlmsvc_get_lockowner()
350 return lockowner; in nlmsvc_get_lockowner()
353 void nlmsvc_put_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_put_lockowner() argument
355 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
357 list_del(&lockowner->list); in nlmsvc_put_lockowner()
358 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
359 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
360 kfree(lockowner); in nlmsvc_put_lockowner()
365 struct nlm_lockowner *lockowner; in __nlmsvc_find_lockowner() local
366 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlmsvc_find_lockowner()
367 if (lockowner->pid != pid) in __nlmsvc_find_lockowner()
369 return nlmsvc_get_lockowner(lockowner); in __nlmsvc_find_lockowner()