Whamcloud - gitweb
client capa list is sorted.
authorlsy <lsy>
Wed, 21 Sep 2005 06:58:38 +0000 (06:58 +0000)
committerlsy <lsy>
Wed, 21 Sep 2005 06:58:38 +0000 (06:58 +0000)
new capa for mds and oss should be added at the end. (so it should be sorted too)

lustre/obdclass/capa.c

index 5a78a82..5646ec1 100644 (file)
@@ -238,9 +238,11 @@ static inline void list_add_capa(struct obd_capa *ocapa, struct list_head *head)
                                 return;
                         }
                 }
                                 return;
                         }
                 }
+                list_add(&ocapa->c_list, head);
+                return;
         }
 
         }
 
-        list_add(&ocapa->c_list, head);
+        list_add_tail(&ocapa->c_list, head);
 }
 
 static inline void do_update_capa(struct obd_capa *ocapa, struct lustre_capa *capa)
 }
 
 static inline void do_update_capa(struct obd_capa *ocapa, struct lustre_capa *capa)