Lines Matching refs:vlserver
15 struct afs_vlserver *vlserver; in afs_alloc_vlserver() local
17 vlserver = kzalloc(struct_size(vlserver, name, name_len + 1), in afs_alloc_vlserver()
19 if (vlserver) { in afs_alloc_vlserver()
20 atomic_set(&vlserver->usage, 1); in afs_alloc_vlserver()
21 rwlock_init(&vlserver->lock); in afs_alloc_vlserver()
22 init_waitqueue_head(&vlserver->probe_wq); in afs_alloc_vlserver()
23 spin_lock_init(&vlserver->probe_lock); in afs_alloc_vlserver()
24 vlserver->rtt = UINT_MAX; in afs_alloc_vlserver()
25 vlserver->name_len = name_len; in afs_alloc_vlserver()
26 vlserver->port = port; in afs_alloc_vlserver()
27 memcpy(vlserver->name, name, name_len); in afs_alloc_vlserver()
29 return vlserver; in afs_alloc_vlserver()
34 struct afs_vlserver *vlserver = container_of(rcu, struct afs_vlserver, rcu); in afs_vlserver_rcu() local
36 afs_put_addrlist(rcu_access_pointer(vlserver->addresses)); in afs_vlserver_rcu()
37 kfree_rcu(vlserver, rcu); in afs_vlserver_rcu()
40 void afs_put_vlserver(struct afs_net *net, struct afs_vlserver *vlserver) in afs_put_vlserver() argument
42 if (vlserver) { in afs_put_vlserver()
43 unsigned int u = atomic_dec_return(&vlserver->usage); in afs_put_vlserver()
47 call_rcu(&vlserver->rcu, afs_vlserver_rcu); in afs_put_vlserver()