Lines Matching refs:pos
485 struct nfs_client *pos, *prev = NULL; in nfs40_walk_client_list() local
493 list_for_each_entry(pos, &nn->nfs_client_list, cl_share_link) { in nfs40_walk_client_list()
495 if (pos->rpc_ops != new->rpc_ops) in nfs40_walk_client_list()
498 if (pos->cl_minorversion != new->cl_minorversion) in nfs40_walk_client_list()
503 if (pos->cl_cons_state > NFS_CS_READY) { in nfs40_walk_client_list()
504 atomic_inc(&pos->cl_count); in nfs40_walk_client_list()
508 prev = pos; in nfs40_walk_client_list()
510 status = nfs_wait_client_init_complete(pos); in nfs40_walk_client_list()
516 if (pos->cl_cons_state != NFS_CS_READY) in nfs40_walk_client_list()
519 if (pos->cl_clientid != new->cl_clientid) in nfs40_walk_client_list()
522 if (!nfs4_match_client_owner_id(pos, new)) in nfs40_walk_client_list()
525 atomic_inc(&pos->cl_count); in nfs40_walk_client_list()
529 prev = pos; in nfs40_walk_client_list()
531 status = nfs4_proc_setclientid_confirm(pos, &clid, cred); in nfs40_walk_client_list()
536 nfs4_swap_callback_idents(pos, new); in nfs40_walk_client_list()
539 *result = pos; in nfs40_walk_client_list()
541 __func__, pos, atomic_read(&pos->cl_count)); in nfs40_walk_client_list()
548 nfs4_schedule_path_down_recovery(pos); in nfs40_walk_client_list()
713 struct nfs_client *pos, *prev = NULL; in nfs41_walk_client_list() local
717 list_for_each_entry(pos, &nn->nfs_client_list, cl_share_link) { in nfs41_walk_client_list()
719 if (pos == new) in nfs41_walk_client_list()
722 if (pos->rpc_ops != new->rpc_ops) in nfs41_walk_client_list()
725 if (pos->cl_minorversion != new->cl_minorversion) in nfs41_walk_client_list()
732 if (pos->cl_cons_state > NFS_CS_READY) { in nfs41_walk_client_list()
733 atomic_inc(&pos->cl_count); in nfs41_walk_client_list()
737 prev = pos; in nfs41_walk_client_list()
739 status = nfs_wait_client_init_complete(pos); in nfs41_walk_client_list()
745 if (pos->cl_cons_state != NFS_CS_READY) in nfs41_walk_client_list()
748 if (!nfs4_match_clientids(pos->cl_clientid, new->cl_clientid)) in nfs41_walk_client_list()
756 if (!nfs4_check_serverowner_major_id(pos->cl_serverowner, in nfs41_walk_client_list()
764 if (!nfs4_match_client_owner_id(pos, new)) in nfs41_walk_client_list()
767 atomic_inc(&pos->cl_count); in nfs41_walk_client_list()
768 *result = pos; in nfs41_walk_client_list()
771 __func__, pos, atomic_read(&pos->cl_count)); in nfs41_walk_client_list()