Lines Matching refs:lockowner
336 nlmsvc_get_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_get_lockowner() argument
338 refcount_inc(&lockowner->count); in nlmsvc_get_lockowner()
339 return lockowner; in nlmsvc_get_lockowner()
342 static void nlmsvc_put_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_put_lockowner() argument
344 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
346 list_del(&lockowner->list); in nlmsvc_put_lockowner()
347 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
348 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
349 kfree(lockowner); in nlmsvc_put_lockowner()
354 struct nlm_lockowner *lockowner; in __nlmsvc_find_lockowner() local
355 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlmsvc_find_lockowner()
356 if (lockowner->pid != pid) in __nlmsvc_find_lockowner()
358 return nlmsvc_get_lockowner(lockowner); in __nlmsvc_find_lockowner()