Lines Matching refs:lockowner
348 nlmsvc_get_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_get_lockowner() argument
350 refcount_inc(&lockowner->count); in nlmsvc_get_lockowner()
351 return lockowner; in nlmsvc_get_lockowner()
354 void nlmsvc_put_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_put_lockowner() argument
356 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
358 list_del(&lockowner->list); in nlmsvc_put_lockowner()
359 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
360 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
361 kfree(lockowner); in nlmsvc_put_lockowner()
366 struct nlm_lockowner *lockowner; in __nlmsvc_find_lockowner() local
367 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlmsvc_find_lockowner()
368 if (lockowner->pid != pid) in __nlmsvc_find_lockowner()
370 return nlmsvc_get_lockowner(lockowner); in __nlmsvc_find_lockowner()