File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -4958,7 +4958,6 @@ nfs4_state_destroy_net(struct net *net)
4958
4958
int i ;
4959
4959
struct nfs4_client * clp = NULL ;
4960
4960
struct nfsd_net * nn = net_generic (net , nfsd_net_id );
4961
- struct rb_node * node , * tmp ;
4962
4961
4963
4962
for (i = 0 ; i < CLIENT_HASH_SIZE ; i ++ ) {
4964
4963
while (!list_empty (& nn -> conf_id_hashtbl [i ])) {
@@ -4967,13 +4966,11 @@ nfs4_state_destroy_net(struct net *net)
4967
4966
}
4968
4967
}
4969
4968
4970
- node = rb_first (& nn -> unconf_name_tree );
4971
- while (node != NULL ) {
4972
- tmp = node ;
4973
- node = rb_next (tmp );
4974
- clp = rb_entry (tmp , struct nfs4_client , cl_namenode );
4975
- rb_erase (tmp , & nn -> unconf_name_tree );
4976
- destroy_client (clp );
4969
+ for (i = 0 ; i < CLIENT_HASH_SIZE ; i ++ ) {
4970
+ while (!list_empty (& nn -> unconf_id_hashtbl [i ])) {
4971
+ clp = list_entry (nn -> unconf_id_hashtbl [i ].next , struct nfs4_client , cl_idhash );
4972
+ destroy_client (clp );
4973
+ }
4977
4974
}
4978
4975
4979
4976
kfree (nn -> sessionid_hashtbl );
You can’t perform that action at this time.
0 commit comments