From 1c9cd4f867aa891ec579c32ccd24b707079468e6 Mon Sep 17 00:00:00 2001 From: lsy Date: Wed, 21 Sep 2005 06:58:38 +0000 Subject: [PATCH] client capa list is sorted. new capa for mds and oss should be added at the end. (so it should be sorted too) --- lustre/obdclass/capa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/obdclass/capa.c b/lustre/obdclass/capa.c index 5a78a82..5646ec1 100644 --- a/lustre/obdclass/capa.c +++ b/lustre/obdclass/capa.c @@ -238,9 +238,11 @@ static inline void list_add_capa(struct obd_capa *ocapa, struct list_head *head) 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) -- 1.8.3.1