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

/linux-4.1.27/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.1.27/fs/nfs/
H A Dpagelist.c916 return l1->lockowner.l_owner == l2->lockowner.l_owner nfs_match_lock_context()
917 && l1->lockowner.l_pid == l2->lockowner.l_pid; nfs_match_lock_context()
H A Dnfs4state.c943 const struct nfs_lockowner *lockowner) nfs4_copy_lock_stateid()
950 if (lockowner == NULL) nfs4_copy_lock_stateid()
956 fl_owner = lockowner->l_owner; nfs4_copy_lock_stateid()
990 fmode_t fmode, const struct nfs_lockowner *lockowner) nfs4_select_rw_stateid()
992 int ret = nfs4_copy_lock_stateid(dst, state, lockowner); nfs4_select_rw_stateid()
941 nfs4_copy_lock_stateid(nfs4_stateid *dst, struct nfs4_state *state, const struct nfs_lockowner *lockowner) nfs4_copy_lock_stateid() argument
989 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.c691 l_ctx->lockowner.l_owner = current->files; nfs_init_lock_context()
692 l_ctx->lockowner.l_pid = current->tgid; nfs_init_lock_context()
703 if (pos->lockowner.l_owner != current->files) __nfs_find_lock_context()
705 if (pos->lockowner.l_pid != current->tgid) __nfs_find_lock_context()
H A Dwrite.c1117 do_flush |= l_ctx->lockowner.l_owner != current->files nfs_flush_incompatible()
1118 || l_ctx->lockowner.l_pid != current->tgid; nfs_flush_incompatible()
H A Dnfs4proc.c2561 struct nfs_lockowner lockowner = { _nfs4_do_setattr() local
2568 &lockowner) == -EIO) _nfs4_do_setattr()
4124 const struct nfs_lockowner *lockowner = NULL; nfs4_set_rw_stateid() local
4127 lockowner = &l_ctx->lockowner; nfs4_set_rw_stateid()
4128 return nfs4_select_rw_stateid(stateid, ctx->state, fmode, lockowner); nfs4_set_rw_stateid()
/linux-4.1.27/fs/nfsd/
H A Dstate.h448 * Represents a generic "lockowner". Similar to an openowner. References to it
462 static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) lockowner() function
H A Dnfs4state.c1097 struct nfs4_lockowner *lo = lockowner(stp->st_stateowner); nfs4_free_lock_stateid()
4815 lockowner(stp->st_stateowner))) nfsd4_free_stateid()
5230 return lockowner(nfs4_get_stateowner(so)); find_lockowner_str_locked()
5249 unhash_lockowner_locked(lockowner(sop)); nfs4_unhash_lockowner()
5254 struct nfs4_lockowner *lo = lockowner(sop); nfs4_free_lockowner()
5414 /* with an existing lockowner, seqids must be the same */ lookup_or_create_lock_state()
5503 lock_sop = lockowner(lock_stp->st_stateowner); nfsd4_lock()
5553 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner)); nfsd4_lock()
5751 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(stp->st_stateowner)); nfsd4_locku()
5787 * true: locks held by lockowner
5788 * false: no locks held by lockowner
5854 lo = lockowner(sop); nfsd4_release_lockowner()
H A Dnfs4proc.c1760 /* We'll fall back on returning no lockowner if run out of space: */
/linux-4.1.27/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.1.27/include/linux/
H A Dnfs_fs.h73 struct nfs_lockowner lockowner; member in struct:nfs_lock_context
/linux-4.1.27/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 539 milliseconds