Whamcloud - gitweb
LU-5405 llog: add newly opened llog at tail of handle list
[fs/lustre-release.git] / lustre / obdclass / llog_cat.c
index 4ec7794..2a0c999 100644 (file)
@@ -201,7 +201,7 @@ int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle,
        }
 
        down_write(&cathandle->lgh_lock);
-       cfs_list_add(&loghandle->u.phd.phd_entry, &cathandle->u.chd.chd_head);
+       cfs_list_add_tail(&loghandle->u.phd.phd_entry, &cathandle->u.chd.chd_head);
        up_write(&cathandle->lgh_lock);
 
        loghandle->u.phd.phd_cat_handle = cathandle;