Searched refs:lockowner (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/fs/lockd/
H A Dclntproc.c49 static struct nlm_lockowner *nlm_get_lockowner(struct nlm_lockowner *lockowner) nlm_get_lockowner() argument
51 atomic_inc(&lockowner->count); nlm_get_lockowner()
52 return lockowner; nlm_get_lockowner()
55 static void nlm_put_lockowner(struct nlm_lockowner *lockowner) nlm_put_lockowner() argument
57 if (!atomic_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) nlm_put_lockowner()
59 list_del(&lockowner->list); nlm_put_lockowner()
60 spin_unlock(&lockowner->host->h_lock); nlm_put_lockowner()
61 nlmclnt_release_host(lockowner->host); nlm_put_lockowner()
62 kfree(lockowner); nlm_put_lockowner()
67 struct nlm_lockowner *lockowner; nlm_pidbusy() local
68 list_for_each_entry(lockowner, &host->h_lockowners, list) { nlm_pidbusy()
69 if (lockowner->pid == pid) nlm_pidbusy()
86 struct nlm_lockowner *lockowner; __nlm_find_lockowner() local
87 list_for_each_entry(lockowner, &host->h_lockowners, list) { __nlm_find_lockowner()
88 if (lockowner->owner != owner) __nlm_find_lockowner()
90 return nlm_get_lockowner(lockowner); __nlm_find_lockowner()
166 /* lockowner allocation has failed */ nlmclnt_proc()
H A Dclntlock.c183 * we put on the wire: in this case the lockowner "pid". nlmclnt_grant()
/linux-4.4.14/fs/nfs/
H A Dpagelist.c915 return l1->lockowner.l_owner == l2->lockowner.l_owner nfs_match_lock_context()
916 && l1->lockowner.l_pid == l2->lockowner.l_pid; nfs_match_lock_context()
H A Dnfs4state.c942 const struct nfs_lockowner *lockowner) nfs4_copy_lock_stateid()
949 if (lockowner == NULL) nfs4_copy_lock_stateid()
955 fl_owner = lockowner->l_owner; nfs4_copy_lock_stateid()
989 fmode_t fmode, const struct nfs_lockowner *lockowner) nfs4_select_rw_stateid()
991 int ret = nfs4_copy_lock_stateid(dst, state, lockowner); nfs4_select_rw_stateid()
940 nfs4_copy_lock_stateid(nfs4_stateid *dst, struct nfs4_state *state, const struct nfs_lockowner *lockowner) nfs4_copy_lock_stateid() argument
988 nfs4_select_rw_stateid(nfs4_stateid *dst, struct nfs4_state *state, fmode_t fmode, const struct nfs_lockowner *lockowner) nfs4_select_rw_stateid() argument
H A Dinode.c699 l_ctx->lockowner.l_owner = current->files; nfs_init_lock_context()
700 l_ctx->lockowner.l_pid = current->tgid; nfs_init_lock_context()
711 if (pos->lockowner.l_owner != current->files) __nfs_find_lock_context()
713 if (pos->lockowner.l_pid != current->tgid) __nfs_find_lock_context()
H A Dwrite.c1137 do_flush |= l_ctx->lockowner.l_owner != current->files nfs_flush_incompatible()
1138 || l_ctx->lockowner.l_pid != current->tgid; nfs_flush_incompatible()
H A Dnfs4proc.c2691 struct nfs_lockowner lockowner = { _nfs4_do_setattr() local
2698 &lockowner) == -EIO) _nfs4_do_setattr()
4278 const struct nfs_lockowner *lockowner = NULL; nfs4_set_rw_stateid() local
4281 lockowner = &l_ctx->lockowner; nfs4_set_rw_stateid()
4282 return nfs4_select_rw_stateid(stateid, ctx->state, fmode, lockowner); nfs4_set_rw_stateid()
/linux-4.4.14/fs/nfsd/
H A Dstate.h441 * Represents a generic "lockowner". Similar to an openowner. References to it
455 static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) lockowner() function
H A Dnfs4state.c1115 struct nfs4_lockowner *lo = lockowner(stp->st_stateowner); nfs4_free_lock_stateid()
4907 lockowner(stp->st_stateowner))) nfsd4_free_stateid()
5313 return lockowner(nfs4_get_stateowner(so)); find_lockowner_str_locked()
5331 unhash_lockowner_locked(lockowner(sop)); nfs4_unhash_lockowner()
5336 struct nfs4_lockowner *lo = lockowner(sop); nfs4_free_lockowner()
5496 /* with an existing lockowner, seqids must be the same */ lookup_or_create_lock_state()
5585 lock_sop = lockowner(lock_stp->st_stateowner); nfsd4_lock()
5635 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner)); nfsd4_lock()
5830 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(stp->st_stateowner)); nfsd4_locku()
5865 * true: locks held by lockowner
5866 * false: no locks held by lockowner
5932 lo = lockowner(sop); nfsd4_release_lockowner()
H A Dnfs4proc.c1745 /* We'll fall back on returning no lockowner if run out of space: */
/linux-4.4.14/drivers/isdn/hisax/
H A Dconfig.c1026 struct module *lockowner) hisax_cs_new()
1079 cs->iif.owner = lockowner; hisax_cs_new()
1175 struct module *lockowner, hisax_setup_func_t card_setup) checkcard()
1181 ret = hisax_cs_new(cardnr, id, card, &cs, busy_flag, lockowner); checkcard()
1024 hisax_cs_new(int cardnr, char *id, struct IsdnCard *card, struct IsdnCardState **cs_out, int *busy_flag, struct module *lockowner) hisax_cs_new() argument
1174 checkcard(int cardnr, char *id, int *busy_flag, struct module *lockowner, hisax_setup_func_t card_setup) checkcard() argument
/linux-4.4.14/include/linux/
H A Dnfs_fs.h73 struct nfs_lockowner lockowner; member in struct:nfs_lock_context
/linux-4.4.14/fs/
H A Dlocks.c173 * We hash locks by lockowner in order to optimize searching for the lock a
174 * particular lockowner is waiting on.

Completed in 492 milliseconds