File tree 1 file changed +5
-8
lines changed 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -4877,7 +4877,6 @@ nfs4_state_destroy_net(struct net *net)
4877
4877
int i ;
4878
4878
struct nfs4_client * clp = NULL ;
4879
4879
struct nfsd_net * nn = net_generic (net , nfsd_net_id );
4880
- struct rb_node * node , * tmp ;
4881
4880
4882
4881
for (i = 0 ; i < CLIENT_HASH_SIZE ; i ++ ) {
4883
4882
while (!list_empty (& nn -> conf_id_hashtbl [i ])) {
@@ -4886,13 +4885,11 @@ nfs4_state_destroy_net(struct net *net)
4886
4885
}
4887
4886
}
4888
4887
4889
- node = rb_first (& nn -> unconf_name_tree );
4890
- while (node != NULL ) {
4891
- tmp = node ;
4892
- node = rb_next (tmp );
4893
- clp = rb_entry (tmp , struct nfs4_client , cl_namenode );
4894
- rb_erase (tmp , & nn -> unconf_name_tree );
4895
- destroy_client (clp );
4888
+ for (i = 0 ; i < CLIENT_HASH_SIZE ; i ++ ) {
4889
+ while (!list_empty (& nn -> unconf_id_hashtbl [i ])) {
4890
+ clp = list_entry (nn -> unconf_id_hashtbl [i ].next , struct nfs4_client , cl_idhash );
4891
+ destroy_client (clp );
4892
+ }
4896
4893
}
4897
4894
4898
4895
kfree (nn -> sessionid_hashtbl );
You can’t perform that action at this time.
0 commit comments