Lines Matching defs:owp
216 struct nfsclowner *owp, *nowp;
274 LIST_FOREACH(owp, ohp, nfsow_list) {
275 if (!NFSBCMP(owp->nfsow_owner, own, NFSV4CL_LOCKNAMELEN))
282 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
307 nfscl_lockexcl(&owp->nfsow_rwlock, NFSCLSTATEMUTEXPTR);
314 *owpp = owp;
329 struct nfsclowner *owp = *owpp, *nowp;
340 if (owp == NULL && nowp != NULL) {
354 owp = *owpp = nowp;
363 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
369 nop->nfso_own = owp;
389 LIST_INSERT_HEAD(&owp->nfsow_open, nop, nfso_list);
480 struct nfsclowner *owp;
571 owp = LIST_FIRST(&clp->nfsc_owner);
572 while (!done && owp != NULL) {
573 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
582 owp = LIST_NEXT(owp, nfsow_list);
615 struct nfsclowner *owp;
636 owp = LIST_FIRST(ohp);
637 while (owp != NULL && keep_looping != 0) {
639 op = LIST_FIRST(&owp->nfsow_open);
658 if (rop == NULL && !NFSBCMP(owp->nfsow_owner,
669 owp = LIST_NEXT(owp, nfsow_list);
684 nfscl_ownerrelease(struct nfsclowner *owp, __unused int error,
688 if (owp == NULL)
692 nfscl_lockunlock(&owp->nfsow_rwlock);
693 nfscl_clrelease(owp->nfsow_clp);
704 struct nfsclowner *owp;
709 owp = op->nfso_own;
710 nfscl_lockunlock(&owp->nfsow_rwlock);
711 clp = owp->nfsow_clp;
1129 struct nfsclowner *owp;
1191 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
1192 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
1238 struct nfsclowner *owp;
1247 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
1248 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
1276 struct nfsclowner *owp;
1345 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
1346 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
1482 nfscl_freeopenowner(struct nfsclowner *owp, int local)
1485 LIST_REMOVE(owp, nfsow_list);
1486 FREE((caddr_t)owp, M_NFSCLOWNER);
1533 struct nfsclowner *owp, *nowp;
1536 LIST_FOREACH_SAFE(owp, &dp->nfsdl_owner, nfsow_list, nowp) {
1537 op = LIST_FIRST(&owp->nfsow_open);
1543 nfscl_freeopenowner(owp, 1);
1568 struct nfsclowner *owp, *nowp;
1572 LIST_FOREACH_SAFE(owp, &clp->nfsc_owner, nfsow_list, nowp) {
1573 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
1576 nfscl_freeopenowner(owp, 0);
1587 struct nfsclowner *owp, *nowp, *towp;
1598 owp = LIST_FIRST(&dp->nfsdl_owner);
1599 while (owp != NULL) {
1600 nowp = LIST_NEXT(owp, nfsow_list);
1601 op = LIST_FIRST(&owp->nfsow_open);
1606 if (!NFSBCMP(towp->nfsow_owner, owp->nfsow_owner,
1631 LIST_REMOVE(owp, nfsow_list);
1632 owp->nfsow_clp = clp;
1633 LIST_INSERT_HEAD(&clp->nfsc_owner, owp, nfsow_list);
1640 owp = nowp;
1656 LIST_FOREACH_SAFE(owp, &clp->nfsc_owner, nfsow_list, nowp) {
1657 owp->nfsow_seqid = 0;
1658 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
1665 if (LIST_EMPTY(&owp->nfsow_open))
1666 nfscl_freeopenowner(owp, 0);
1677 struct nfsclowner *owp, *nowp;
1691 owp = LIST_FIRST(&clp->nfsc_owner);
1692 while (owp != NULL) {
1693 nowp = LIST_NEXT(owp, nfsow_list);
1694 if (!NFSBCMP(owp->nfsow_owner, own,
1702 if (LIST_EMPTY(&owp->nfsow_open))
1703 nfscl_freeopenowner(owp, 0);
1705 owp->nfsow_defunct = 1;
1707 owp = nowp;
1717 struct nfsclowner *owp, *nowp;
1723 LIST_FOREACH_SAFE(owp, &clp->nfsc_owner, nfsow_list, nowp) {
1724 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
1730 if (nfscl_procdoesntexist(owp->nfsow_owner))
1731 nfscl_cleanup_common(clp, owp->nfsow_owner);
1881 struct nfsclowner *owp, *nowp;
1969 owp = LIST_FIRST(&clp->nfsc_owner);
1970 while (owp != NULL) {
1971 nowp = LIST_NEXT(owp, nfsow_list);
1972 owp->nfsow_seqid = 0;
1973 op = LIST_FIRST(&owp->nfsow_open);
2067 owp = nowp;
2441 struct nfsclowner *owp, *nowp;
2527 LIST_FOREACH_SAFE(owp, &clp->nfsc_owner, nfsow_list, nowp) {
2528 if (LIST_EMPTY(&owp->nfsow_open)) {
2529 if (owp->nfsow_defunct != 0)
2530 nfscl_freeopenowner(owp, 0);
2597 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
2598 op = LIST_FIRST(&owp->nfsow_open);
2786 struct nfsclowner *owp;
2799 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
2800 if (openowner && !LIST_EMPTY(&owp->nfsow_open))
2802 owp->nfsow_owner[0], owp->nfsow_owner[1],
2803 owp->nfsow_owner[2], owp->nfsow_owner[3],
2804 owp->nfsow_seqid);
2805 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
2835 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
2836 if (openowner && !LIST_EMPTY(&owp->nfsow_open))
2838 owp->nfsow_owner[0], owp->nfsow_owner[1],
2839 owp->nfsow_owner[2], owp->nfsow_owner[3],
2840 owp->nfsow_seqid);
2841 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
2881 struct nfsclowner *owp, *owp2;
2898 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
2899 if (owp != owp2 &&
2900 !NFSBCMP(owp->nfsow_owner, owp2->nfsow_owner,
2916 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
2917 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
2947 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
2948 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
2990 struct nfsclowner *owp;
3014 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
3015 op = LIST_FIRST(&owp->nfsow_open);
3034 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
3035 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
3064 struct nfsclowner *owp, *nowp;
3083 LIST_FOREACH_SAFE(owp, &dp->nfsdl_owner, nfsow_list, nowp) {
3084 op = LIST_FIRST(&owp->nfsow_open);
3090 nfscl_freeopenowner(owp, 1);
3099 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
3100 op = LIST_FIRST(&owp->nfsow_open);
3673 struct nfsclowner *owp;
3682 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
3683 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
3784 struct nfsclowner *owp, *lowp, *nowp;
3850 LIST_FOREACH(owp, &clp->nfsc_owner, nfsow_list) {
3852 owp->nfsow_owner, NFSV4CL_LOCKNAMELEN)) {
3855 owp, dp, cred, p);
3876 if (owp == NULL) {
3880 nfscl_newopen(clp, NULL, &owp, &nowp, &op,
3885 owp, dp, cred, p);
3887 nfscl_freeopenowner(owp, 0);
3936 struct nfsclopen *lop, struct nfsclowner *owp, struct nfscldeleg *dp,
3948 LIST_FOREACH(op, &owp->nfsow_open, nfso_list) {
3963 nfscl_newopen(clp, NULL, &owp, NULL, &op, &nop, owp->nfsow_owner,
4276 struct nfsclowner *owp;
4316 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
4317 if (!LIST_EMPTY(&owp->nfsow_open)) {
4373 struct nfsclowner *owp;
4415 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
4416 if (!LIST_EMPTY(&owp->nfsow_open)) {
4475 LIST_FOREACH(owp, &dp->nfsdl_owner, nfsow_list) {
4476 if (!LIST_EMPTY(&owp->nfsow_open)) {