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