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