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 @@ -4877,7 +4877,6 @@ nfs4_state_destroy_net(struct net *net)
48774877 int i ;
48784878 struct nfs4_client * clp = NULL ;
48794879 struct nfsd_net * nn = net_generic (net , nfsd_net_id );
4880- struct rb_node * node , * tmp ;
48814880
48824881 for (i = 0 ; i < CLIENT_HASH_SIZE ; i ++ ) {
48834882 while (!list_empty (& nn -> conf_id_hashtbl [i ])) {
@@ -4886,13 +4885,11 @@ nfs4_state_destroy_net(struct net *net)
48864885 }
48874886 }
48884887
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+ }
48964893 }
48974894
48984895 kfree (nn -> sessionid_hashtbl );
You can’t perform that action at this time.
0 commit comments